Skip to content

Commit

Permalink
Merge pull request #1917 from projectblacklight/duplicate_test
Browse files Browse the repository at this point in the history
Remove duplicate test
  • Loading branch information
Jessie Keck committed Jul 25, 2018
2 parents 76f7901 + 63fac54 commit 6ea0849
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, 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 6ea0849

Please sign in to comment.