mirror of
https://github.com/lostisland/faraday.git
synced 2025-12-11 00:04:41 -05:00
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:
parent
d55a9425c5
commit
cd055241bf
@ -84,7 +84,11 @@ else
|
|||||||
end
|
end
|
||||||
assert_equal %({"first"=>"zack"}), resp.body
|
assert_equal %({"first"=>"zack"}), resp.body
|
||||||
end
|
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
|
define_method "test_#{adapter}_PUT_retrieves_the_response_headers" do
|
||||||
assert_match /text\/html/, create_connection(adapter).put('echo_name').headers['content-type']
|
assert_match /text\/html/, create_connection(adapter).put('echo_name').headers['content-type']
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user