spec/spec_helper.rb in elastic-transport-8.0.1 vs spec/spec_helper.rb in elastic-transport-8.1.0.pre1

- old
+ new

@@ -72,9 +72,13 @@ # @since 7.0.0 def default_client $client ||= Elastic::Transport::Client.new(hosts: ELASTICSEARCH_HOSTS) end +def is_faraday_v2? + Gem::Version.new(Faraday::VERSION) >= Gem::Version.new(2) +end + module Config def self.included(context) # Get the hosts to use to connect an elasticsearch client. # # @since 7.0.0