Skip to content

Commit

Permalink
fix SECURE_INTEGRATION specs to properly detect ES version
Browse files Browse the repository at this point in the history
  • Loading branch information
yaauie committed Jan 12, 2022
1 parent 84a0e8a commit 68d5451
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/es_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def routing_field_name
end

def self.es_version
RSpec.configuration.filter[:es_version] || ENV['ES_VERSION'] || ENV['ELASTIC_STACK_VERSION']
[
nilify(RSpec.configuration.filter[:es_version]),
nilify(ENV['ES_VERSION']),
nilify(ENV['ELASTIC_STACK_VERSION']),
].compact.first
end

RSpec::Matchers.define :have_hits do |expected|
Expand Down

0 comments on commit 68d5451

Please sign in to comment.