Skip to content

Commit

Permalink
Merge pull request #6609 from samvera/updates_indexing_adapter_spec
Browse files Browse the repository at this point in the history
Adds switch for expected solr cor in `spec/valkyrie/indexing/solr/indexing_adapter_spec.rb`.
  • Loading branch information
dlpierce authored Jan 17, 2024
2 parents 60ed3c8 + 5f75f60 commit 6fdb35c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/valkyrie/indexing/solr/indexing_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
let(:metadata_adapter) { Wings::Valkyrie::MetadataAdapter.new }
let(:resource) { FactoryBot.valkyrie_create(:hyrax_resource) }
let(:resource2) { FactoryBot.valkyrie_create(:hyrax_resource) }
let(:expected_solr_core) { Hyrax.config.disable_wings ? 'koppie_test' : 'valkyrie-test' }

describe "#connection" do
it "returns connection" do
expect(adapter.connection.uri.to_s).to include 'valkyrie-test'
expect(adapter.connection.uri.to_s).to include expected_solr_core
end
end

Expand Down

0 comments on commit 6fdb35c

Please sign in to comment.