Maintenance: Transaction::Notification spec runs fine at any time of the day

This commit is contained in:
Mantas Masalskis 2021-09-13 11:10:06 +02:00 committed by Martin Gruner
parent 0c80232a27
commit 16ce1d6eb0

View file

@ -9,11 +9,11 @@ RSpec.describe Transaction::Notification, type: :model do
let(:ticket) { create(:ticket, owner: user, state_name: 'open', pending_time: Time.current) }
before do
travel_to Time.current.noon
user.groups << group
ticket
Setting.set('timezone_default', 'America/Santiago')
freeze_time
run(ticket, user, 'reminder_reached')
OnlineNotification.destroy_all
end