spec/httpi/httpi_spec.rb in httpi-2.4.0 vs spec/httpi/httpi_spec.rb in httpi-2.4.1

- old
+ new

@@ -2,10 +2,11 @@ require "integration/support/server" # find out why httpi doesn't load these automatically. [dh, 2012-12-15] require "excon" require "net/http/persistent" +require "http" unless RUBY_VERSION < "1.9" require "em-synchrony" require "em-http-request" end @@ -285,10 +286,11 @@ :curb => lambda { Curl::Easy }, :net_http => lambda { Net::HTTP }, :net_http_persistent => lambda { Net::HTTP::Persistent }, :em_http => lambda { EventMachine::HttpConnection }, :rack => lambda { Rack::MockRequest }, - :excon => lambda { Excon::Connection } + :excon => lambda { Excon::Connection }, + :http => lambda { ::HTTP::Client } } context "using #{adapter}" do before { opts[:class].any_instance.expects(:request).with(method) }