Skip to content

Commit

Permalink
The new WebMock release has fixed the Net::HTTP empty body bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Jul 25, 2012
1 parent 12905a3 commit d9873fb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -56,7 +56,7 @@ def self.test_record_and_playback(description, query)
test_record_and_playback "with a complex escaped query param", "q=#{CGI.escape("A&(! 234k !@ kasdj232\#$ kjw35")}"

it 'plays back an empty body response exactly as it was recorded (e.g. nil vs empty string)' do
pending "awaiting an external fix", :if => library.gsub('_', '/').include?('net/http') do
pending "awaiting an external fix", :if => library.gsub('_', '/').include?('net/http') && library_hook_name != :webmock do
get_body = lambda do
VCR.use_cassette('empty_body', :record => :once) do
get_body_object make_http_request(:get, "http://localhost:#{VCR::SinatraApp.port}/204")
Expand Down

0 comments on commit d9873fb

Please sign in to comment.