Fix nil query_username (#2013)
This commit is contained in:
@ -25,6 +25,18 @@ describe AccountSearchService do
|
||||
end
|
||||
|
||||
describe 'searching local and remote users' do
|
||||
describe "when only '@'" do
|
||||
before do
|
||||
allow(Account).to receive(:find_remote)
|
||||
allow(Account).to receive(:search_for)
|
||||
subject.call('@', 10)
|
||||
end
|
||||
|
||||
it 'uses find_remote with empty query to look for local accounts' do
|
||||
expect(Account).to have_received(:find_remote).with('', nil)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'when no domain' do
|
||||
before do
|
||||
allow(Account).to receive(:find_remote)
|
||||
|
Reference in New Issue
Block a user