Merge remote-tracking branch 'parent/main' into kb_migration
This commit is contained in:
commit
05a022448b
22 changed files with 306 additions and 209 deletions
|
@ -83,15 +83,6 @@ describe SearchService, type: :service do
|
|||
expect(Tag).to have_received(:search_for).with('tag', 10, 0, exclude_unreviewed: nil)
|
||||
expect(results).to eq empty_results.merge(hashtags: [tag])
|
||||
end
|
||||
|
||||
it 'does not include tag when starts with @ character' do
|
||||
query = '@username'
|
||||
allow(Tag).to receive(:search_for)
|
||||
|
||||
results = subject.call(query, nil, 10)
|
||||
expect(Tag).to_not have_received(:search_for)
|
||||
expect(results).to eq empty_results
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue