Maintenance: Transaction::Notification spec runs fine at any time of the day
This commit is contained in:
parent
0c80232a27
commit
16ce1d6eb0
|
@ -9,11 +9,11 @@ RSpec.describe Transaction::Notification, type: :model do
|
||||||
let(:ticket) { create(:ticket, owner: user, state_name: 'open', pending_time: Time.current) }
|
let(:ticket) { create(:ticket, owner: user, state_name: 'open', pending_time: Time.current) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
travel_to Time.current.noon
|
||||||
user.groups << group
|
user.groups << group
|
||||||
ticket
|
ticket
|
||||||
|
|
||||||
Setting.set('timezone_default', 'America/Santiago')
|
Setting.set('timezone_default', 'America/Santiago')
|
||||||
freeze_time
|
|
||||||
run(ticket, user, 'reminder_reached')
|
run(ticket, user, 'reminder_reached')
|
||||||
OnlineNotification.destroy_all
|
OnlineNotification.destroy_all
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue