diff --git a/.rubocop.yml b/.rubocop.yml index fc87323d8..1e8dc07ad 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -561,6 +561,9 @@ RSpec/Rails/HaveHttpStatus: RSpec/Rails/InferredSpecType: Enabled: true +RSpec/Rails/TravelAround: + Enabled: true + RSpec/RepeatedExample: Enabled: true diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f47bafa8d..d7a2b57fe 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -148,9 +148,7 @@ RSpec.configure do |config| .to receive(:locales).and_return(I18n.available_locales.map(&:to_s)) end - config.around(:each, :with_frozen_time) do |example| - freeze_time { example.run } - end + config.before(:each, :with_frozen_time) { freeze_time } config.before(:each, :application_zone_west_of_system_zone) do application_zone = ActiveSupport::TimeZone.new("Quito")