mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: show group mentions and topics in groups page
This commit is contained in:
@@ -103,12 +103,15 @@ describe PostAlerter do
|
||||
create_post_with_alerts(raw: "Hello @group how are you?")
|
||||
}.to change(evil_trout.notifications, :count).by(1)
|
||||
|
||||
expect(GroupMention.count).to eq(1)
|
||||
|
||||
group.update_columns(alias_level: Group::ALIAS_LEVELS[:members_mods_and_admins])
|
||||
|
||||
expect {
|
||||
create_post_with_alerts(raw: "Hello @group you are not mentionable")
|
||||
}.to change(evil_trout.notifications, :count).by(0)
|
||||
|
||||
expect(GroupMention.count).to eq(2)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user