From d9873fb23be5cb0fa97bc7aeb8844339122bbb30 Mon Sep 17 00:00:00 2001 From: Myron Marston Date: Wed, 25 Jul 2012 10:14:43 -0700 Subject: [PATCH] The new WebMock release has fixed the Net::HTTP empty body bug. https://github.com/bblimke/webmock/commit/e015405e25a9f8dd9d104616698c44d65fb06dd8 --- spec/support/shared_example_groups/hook_into_http_library.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/shared_example_groups/hook_into_http_library.rb b/spec/support/shared_example_groups/hook_into_http_library.rb index fb60313e..5e7aab02 100644 --- a/spec/support/shared_example_groups/hook_into_http_library.rb +++ b/spec/support/shared_example_groups/hook_into_http_library.rb @@ -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")