From 8a3ab1cc438468ab5a7e6dbe277bd5dd7ca6ba50 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Mon, 22 Nov 2021 14:59:10 +1000 Subject: [PATCH] DEV: Fix spec (#15036) Broken by 9f8ee8f1372eab643951a49440024ee0fdbdf792 --- spec/models/notification_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb index 9afd1d86513..2e91a5e7286 100644 --- a/spec/models/notification_spec.rb +++ b/spec/models/notification_spec.rb @@ -183,7 +183,7 @@ describe Notification do end describe 'message bus' do - fab!(:user) { Fabricate(:user) } + fab!(:user) { Fabricate(:user, last_seen_at: 1.day.ago) } it 'updates the notification count on create' do Notification.any_instance.expects(:refresh_notification_count).returns(nil)