0
0
Fork 0

Optimize account search (#2421)

This commit is contained in:
178inaba 2017-04-25 11:44:43 +09:00 committed by Eugen
parent 17c591ffba
commit d2159deaf2
2 changed files with 11 additions and 3 deletions

View file

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