mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user