Fix Time.now usage to Time.current to include zone
This commit is contained in:
@@ -78,11 +78,11 @@ shared_examples "notifiable" do
|
||||
notification = create(:notification, notifiable: notifiable)
|
||||
|
||||
if notifiable.respond_to?(:retired_at)
|
||||
notifiable.update(retired_at: Time.now)
|
||||
notifiable.update(retired_at: Time.current)
|
||||
expect(notification.check_availability(notifiable)).to be(false)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user