mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Turn off verify partial double
Turning off partial double allows us to mock non existent methods which is needed for our stub_responses
This commit is contained in:
parent
b00e26e293
commit
eec868f471
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue