Skip to content

Remove legacy code in specs #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ellnix
Copy link
Collaborator

@ellnix ellnix commented Apr 2, 2025

Please see the descriptions of each commit for explanations.

ellnix added 4 commits April 2, 2025 13:11
rspec automatically adds `spec/` to the load path, and adding `lib/` to
the load path does not serve a purpose from what I can see.
Also removes legacy ActiveJob test setup.

This should be safe since we do not support Rails versions older than 6
anyway.
There's a theoretical possibility of a race condition:
https://docs.datadoghq.com/security/code_security/static_analysis/static_analysis_rules/ruby-best-practices/atomic-file-operations/

I don't really expect it to happen, but this way is simpler in any case.
Temporary files that can be left behind if the tests don't exit
gracefully.
@ellnix ellnix added skip-changelog The PR will not appear in the release changelogs maintenance Anything related to maintenance (CI, tests, refactoring...) labels Apr 2, 2025
Copy link

codecov bot commented Apr 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.43%. Comparing base (a35652c) to head (4f33e1b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #414   +/-   ##
=======================================
  Coverage   90.43%   90.43%           
=======================================
  Files          14       14           
  Lines         847      847           
=======================================
  Hits          766      766           
  Misses         81       81           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Anything related to maintenance (CI, tests, refactoring...) skip-changelog The PR will not appear in the release changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant