mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Disable RSpecRails/TravelAround cop
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user