Optimize account search (#2421)
This commit is contained in:
parent
17c591ffba
commit
d2159deaf2
2 changed files with 11 additions and 3 deletions
|
@ -11,6 +11,12 @@ describe AccountSearchService do
|
|||
it 'returns empty array for hashtag query' do
|
||||
results = subject.call('#tag', 10)
|
||||
|
||||
expect(results).to eq []
|
||||
end
|
||||
it 'returns empty array for limit zero' do
|
||||
Fabricate(:account, username: 'match')
|
||||
results = subject.call('match', 0)
|
||||
|
||||
expect(results).to eq []
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue