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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user