Disable RSpecRails/TravelAround cop

This commit is contained in:
Alexander Brandon Coles
2026-03-10 15:52:49 -03:00
parent addb6bc5f6
commit b6d2d830dd
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -226,6 +226,10 @@ Rails/SkipsModelValidations:
RSpecRails/HttpStatus:
Enabled: false
# The block form of `travel_to` is often the tighter and safer option in our Rails specs.
RSpecRails/TravelAround:
Enabled: false
# expect not_to change is not working as expected
# if you chain it with multiple expected changes
RSpec/ChangeByZero:
@@ -74,7 +74,7 @@ RSpec.describe "my time tracking", :js do
end
around do |example|
travel_to "2025-04-09T12:00:00Z" do # rubocop:disable RSpecRails/TravelAround
travel_to "2025-04-09T12:00:00Z" do
example.run
end
end