diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-27 04:42:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-27 04:42:08 +0200 |
commit | b9fbcbfe4e0a15fcf8a457ce17ea080f0eb939fc (patch) | |
tree | 03332ded5e52a9cdb099dec8286ab7ac36d67c02 /spec | |
parent | 501148ab912b3bd36dbf0f9f2e10bfde7787012d (diff) |
Add search syntax for operators and phrases (#11411)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/search_service_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/search_service_spec.rb b/spec/services/search_service_spec.rb index d064cd9b8..ade306ed2 100644 --- a/spec/services/search_service_spec.rb +++ b/spec/services/search_service_spec.rb @@ -27,7 +27,7 @@ describe SearchService, type: :service do it 'returns the empty results' do service = double(call: nil) allow(ResolveURLService).to receive(:new).and_return(service) - results = subject.call(@query, nil, 10) + results = subject.call(@query, nil, 10, resolve: true) expect(service).to have_received(:call).with(@query, on_behalf_of: nil) expect(results).to eq empty_results @@ -40,7 +40,7 @@ describe SearchService, type: :service do service = double(call: account) allow(ResolveURLService).to receive(:new).and_return(service) - results = subject.call(@query, nil, 10) + results = subject.call(@query, nil, 10, resolve: true) expect(service).to have_received(:call).with(@query, on_behalf_of: nil) expect(results).to eq empty_results.merge(accounts: [account]) end @@ -52,7 +52,7 @@ describe SearchService, type: :service do service = double(call: status) allow(ResolveURLService).to receive(:new).and_return(service) - results = subject.call(@query, nil, 10) + results = subject.call(@query, nil, 10, resolve: true) expect(service).to have_received(:call).with(@query, on_behalf_of: nil) expect(results).to eq empty_results.merge(statuses: [status]) end |