typhoeus 0.3.2+ handles PUT without bodies too

This commit is contained in:
rick 2012-04-14 07:48:23 -06:00
parent 5159a64db2
commit 489abd66c1

View File

@ -96,11 +96,8 @@ else
assert_equal %({"first"=>"zack"}), resp.body
end
# https://github.com/dbalatero/typhoeus/issues/84
if ENV['FORCE'] || !%w[Faraday::Adapter::Typhoeus].include?(adapter.to_s)
define_method "test_#{adapter}_PUT_retrieves_the_response_headers" do
assert_match(/text\/html/, create_connection(adapter).put('echo_name').headers['content-type'])
end
define_method "test_#{adapter}_PUT_retrieves_the_response_headers" do
assert_match(/text\/html/, create_connection(adapter).put('echo_name').headers['content-type'])
end
# https://github.com/toland/patron/issues/34