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 Jun 28, 2018
1 parent 942387a commit 6338900
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions spec/services/blacklight/search_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# blacklight code get a single document returned?)
#
RSpec.describe Blacklight::SearchService do

let(:service) { described_class.new(blacklight_config, user_params) }
let(:repository) do
if copy_of_catalog_config.document_model == SolrDocument
Expand Down Expand Up @@ -296,12 +295,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 6338900

Please sign in to comment.