spec/spec_helper.rb in elasticsearch-transport-7.17.9 vs spec/spec_helper.rb in elasticsearch-transport-7.17.10
- old
+ new
@@ -73,9 +73,13 @@
# @since 7.0.0
def default_client
$client ||= Elasticsearch::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