From 709ab731c7c65a4cd2f83d064db7e1a5e6ccb3a7 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 19 Feb 2015 13:20:25 +1100 Subject: [PATCH] don't put missing notifications in the stream for tests. --- spec/models/notification_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb index 3071a865764..f23085650f4 100644 --- a/spec/models/notification_spec.rb +++ b/spec/models/notification_spec.rb @@ -187,16 +187,18 @@ describe Notification do it 'correctly updates the read state' do user = Fabricate(:user) + t = Fabricate(:topic) + Notification.create!(read: false, user_id: user.id, - topic_id: 2, + topic_id: t.id, post_number: 1, data: '{}', notification_type: Notification.types[:private_message]) other = Notification.create!(read: false, user_id: user.id, - topic_id: 2, + topic_id: t.id, post_number: 1, data: '{}', notification_type: Notification.types[:mentioned])