FIX: notifications inconsistencies + never notify system user

This commit is contained in:
Régis Hanol
2015-04-01 11:55:59 +02:00
parent 6137a5f00b
commit eec1921ba9
4 changed files with 9 additions and 17 deletions

View File

@@ -507,15 +507,6 @@ describe PostAction do
expect(topic.posts.count).to eq(1)
end
it "should not generate a notification for auto-message" do
post = create_post
PostAction.act(moderator, post, PostActionType.types[:spam], message: "WAT")
PostAlerter.expects(:post_created).never
PostAction.agree_flags!(post, admin)
end
end
end