From d2159deaf272de265ba11f16a92d60ea61def19f Mon Sep 17 00:00:00 2001 From: 178inaba Date: Tue, 25 Apr 2017 11:44:43 +0900 Subject: Optimize account search (#2421) --- spec/services/account_search_service_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec') diff --git a/spec/services/account_search_service_spec.rb b/spec/services/account_search_service_spec.rb index 723623833..b7c281a56 100644 --- a/spec/services/account_search_service_spec.rb +++ b/spec/services/account_search_service_spec.rb @@ -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 -- cgit