Skip to content

Commit

Permalink
Use host from elasticsearch config hash
Browse files Browse the repository at this point in the history
The DGU Publish application uses the config hash loaded from the
config/elasticsearch.yml file so adjust DGU Find to match.
  • Loading branch information
pixeltrix committed Nov 30, 2020
1 parent ea28297 commit 367627a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@

FactoryBot.find_definitions

WebMock.disable_net_connect!(allow_localhost: true, allow: /^elasticsearch[-a-z0-9]*$/)
WebMock.disable_net_connect!(
allow_localhost: true,
allow: Rails.configuration.elasticsearch["host"],
)

RSpec.configure do |config|
# RSpec Rails can automatically mix in different behaviours to your tests
Expand Down

0 comments on commit 367627a

Please sign in to comment.