Skip to content

Commit

Permalink
Make Faraday solr mock more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Aug 26, 2021
1 parent c6c762c commit 36ba999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/metadata_panel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
allow(connection).to receive(:get).and_return(response)
allow(Faraday).to receive(:new).with(url: 'http://purl.stanford.edu/cg357zz0321.mods').and_return(connection)

allow(Faraday).to receive(:new).with(hash_including(url: 'http://127.0.0.1:8983/solr/blacklight-core/')).and_call_original
allow(Faraday).to receive(:new).with(hash_including(url: %r{solr/blacklight-core})).and_call_original
end

scenario 'shows up as HTML' do
Expand Down

0 comments on commit 36ba999

Please sign in to comment.