FEATURE: first class group mentions built in

If you allow a group to be mentioned it can be mentioned with the @ symbol.

Keep in mind as a safety mechanism max_users_notified_per_group_mention is set to 100
This commit is contained in:
Sam
2015-11-30 17:03:47 +11:00
parent 5a7831265a
commit ad3dd161e7
25 changed files with 210 additions and 94 deletions

View File

@@ -35,6 +35,14 @@ describe UserSearch do
UserSearch.new(*args).search
end
it 'allows for correct underscore searching' do
Fabricate(:user, username: 'Under_Score')
Fabricate(:user, username: 'undertaker')
expect(search_for("under_sc").length).to eq(1)
expect(search_for("under_").length).to eq(1)
end
# this is a seriously expensive integration test,
# re-creating this entire test db is too expensive reuse
it "operates correctly" do