correct bad spec

This commit is contained in:
Sam 2016-03-22 14:50:12 +11:00
parent f9e5c49350
commit d09a20210b
1 changed files with 4 additions and 1 deletions

View File

@ -159,8 +159,11 @@ describe Notification do
before do before do
@topic = Fabricate(:private_message_topic) @topic = Fabricate(:private_message_topic)
@post = Fabricate(:post, topic: @topic, user: @topic.user) @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 @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 end
it 'should create and rollup private message notifications' do it 'should create and rollup private message notifications' do