avoid empty PUT body test with Typhoeus because of its bug

The bug is probably https://github.com/dbalatero/typhoeus/issues/84
This commit is contained in:
Mislav Marohnić 2011-05-13 11:42:25 -07:00
parent d55a9425c5
commit cd055241bf

View File

@ -84,7 +84,11 @@ else
end
assert_equal %({"first"=>"zack"}), resp.body
end
end
# https://github.com/toland/patron/issues/9
# https://github.com/dbalatero/typhoeus/issues/84
if ENV['FORCE'] || !%w[Faraday::Adapter::Patron 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