Browse Source

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

Mantas Masalskis 3 years ago
parent
commit
16ce1d6eb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec/models/transaction/notification_spec.rb

+ 1 - 1
spec/models/transaction/notification_spec.rb

@@ -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