From eec868f47157ceb7f953bc9913804f5ed5eb801b Mon Sep 17 00:00:00 2001 From: Michael Stock Date: Sat, 6 Dec 2014 17:48:53 -0800 Subject: [PATCH] Turn off verify partial double Turning off partial double allows us to mock non existent methods which is needed for our stub_responses --- spec/httparty_spec.rb | 4 ++-- spec/spec_helper.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/httparty_spec.rb b/spec/httparty_spec.rb index 8952966..d7e96cc 100644 --- a/spec/httparty_spec.rb +++ b/spec/httparty_spec.rb @@ -697,7 +697,7 @@ RSpec.describe HTTParty do expect( HTTParty.get('http://www.google.com') do |fragment| expect(chunks).to include(fragment) - end + end.parsed_response ).to eq(chunks.join) end @@ -709,7 +709,7 @@ RSpec.describe HTTParty do expect( HTTParty.get('http://www.google.com', options) do |fragment| expect(chunks).to include(fragment) - end + end.parsed_response ).to eq(nil) end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3e25b3f..0bb3099 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -28,7 +28,7 @@ RSpec.configure do |config| end config.mock_with :rspec do |mocks| - mocks.verify_partial_doubles = true + mocks.verify_partial_doubles = false end config.filter_run :focus