FEATURE: show group mentions and topics in groups page

This commit is contained in:
Sam
2015-12-01 16:52:43 +11:00
parent 0cffbf87c3
commit d1a5d8ea62
25 changed files with 202 additions and 52 deletions

View File

@@ -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