test/integration/transport_test.rb in elasticsearch-transport-0.4.7 vs test/integration/transport_test.rb in elasticsearch-transport-0.4.8
- old
+ new
@@ -12,10 +12,18 @@
should "allow to customize the Faraday adapter" do
require 'typhoeus'
require 'typhoeus/adapters/faraday'
+ # Fix for unreleased Typhoeus version (https://github.com/typhoeus/typhoeus/commit/00da90f)
+ #
+ class ::Faraday::Adapter::Typhoeus
+ def configure_ssl(req, env)
+ # noop
+ end
+ end
+
transport = Elasticsearch::Transport::Transport::HTTP::Faraday.new \
:hosts => [ { :host => 'localhost', :port => @port } ] do |f|
f.response :logger
f.adapter :typhoeus
end
@@ -33,9 +41,9 @@
curl.verbose = true
end
client = Elasticsearch::Transport::Client.new transport: transport
client.perform_request 'GET', ''
- end
+ end unless JRUBY
end
end