mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: notifications inconsistencies + never notify system user
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user