Skip to content

Commit

Permalink
Remove duplicate test
Browse files Browse the repository at this point in the history
The exception behavior is already tested in the test above and general
handler behavior is tested in
spec/models/blacklight/solr/repository_spec.rb
  • Loading branch information
jcoyne committed Jul 20, 2018
1 parent 89f71c2 commit 63fac54
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions spec/services/blacklight/search_service_spec.rb
Expand Up @@ -9,7 +9,6 @@
# blacklight code get a single document returned?)
#
RSpec.describe Blacklight::SearchService, api: true do

let(:service) { described_class.new(blacklight_config, user_params) }
let(:repository) { Blacklight::Solr::Repository.new(blacklight_config) }
let(:user_params) { {} }
Expand Down Expand Up @@ -291,12 +290,6 @@
}.to raise_error(Blacklight::Exceptions::RecordNotFound)
end

it "uses a provided document solr path" do
allow(blacklight_config).to receive_messages(document_solr_path: 'get')
allow(blacklight_solr).to receive(:send_and_receive).with('get', kind_of(Hash)).and_return({'response'=>{'docs'=>[]}})
expect { service.fetch(doc_id)}.to raise_error Blacklight::Exceptions::RecordNotFound
end

it "has a non-nil result for a known id" do
expect(@document).not_to be_nil
end
Expand Down

0 comments on commit 63fac54

Please sign in to comment.