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(
|
expect(
|
||||||
HTTParty.get('http://www.google.com') do |fragment|
|
HTTParty.get('http://www.google.com') do |fragment|
|
||||||
expect(chunks).to include(fragment)
|
expect(chunks).to include(fragment)
|
||||||
end
|
end.parsed_response
|
||||||
).to eq(chunks.join)
|
).to eq(chunks.join)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -709,7 +709,7 @@ RSpec.describe HTTParty do
|
||||||
expect(
|
expect(
|
||||||
HTTParty.get('http://www.google.com', options) do |fragment|
|
HTTParty.get('http://www.google.com', options) do |fragment|
|
||||||
expect(chunks).to include(fragment)
|
expect(chunks).to include(fragment)
|
||||||
end
|
end.parsed_response
|
||||||
).to eq(nil)
|
).to eq(nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ RSpec.configure do |config|
|
||||||
end
|
end
|
||||||
|
|
||||||
config.mock_with :rspec do |mocks|
|
config.mock_with :rspec do |mocks|
|
||||||
mocks.verify_partial_doubles = true
|
mocks.verify_partial_doubles = false
|
||||||
end
|
end
|
||||||
|
|
||||||
config.filter_run :focus
|
config.filter_run :focus
|
||||||
|
|
Loading…
Reference in a new issue