diff --git a/.rubocop.yml b/.rubocop.yml index 47896294dfe..1815a2c11d1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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: diff --git a/modules/costs/spec/features/my_time_tracking_spec.rb b/modules/costs/spec/features/my_time_tracking_spec.rb index b85bbab5108..bc18a135024 100644 --- a/modules/costs/spec/features/my_time_tracking_spec.rb +++ b/modules/costs/spec/features/my_time_tracking_spec.rb @@ -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