From d09a20210b8994ee181601bcb276571f3f6391f2 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 22 Mar 2016 14:50:12 +1100 Subject: [PATCH] correct bad spec --- spec/models/notification_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb index 09b9f58433b..ef64bcfbe39 100644 --- a/spec/models/notification_spec.rb +++ b/spec/models/notification_spec.rb @@ -159,8 +159,11 @@ describe Notification do before do @topic = Fabricate(:private_message_topic) @post = Fabricate(:post, topic: @topic, user: @topic.user) - PostAlerter.post_created(@post) @target = @post.topic.topic_allowed_users.reject{|a| a.user_id == @post.user_id}[0].user + + TopicUser.change(@target.id, @topic.id, notification_level: TopicUser.notification_levels[:watching]) + + PostAlerter.post_created(@post) end it 'should create and rollup private message notifications' do