Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix spec (#15036)

Martin Brennan8a3ab1cc4384
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)