Use Time.current when freezing time

I was using Time.now because that's what Rails actually does, but we get
a warning by rubocop.
This commit is contained in:
Javi Martín
2019-10-10 02:41:10 +02:00
parent 6c45d21626
commit cc76432a97

View File

@@ -102,7 +102,7 @@ RSpec.configure do |config|
end
config.before(:each, :with_frozen_time) do
travel_to Time.now # TODO: use `freeze_time` after migrating to Rails 5.
travel_to Time.current # TODO: use `freeze_time` after migrating to Rails 5.2.
end
config.after(:each, :with_frozen_time) do