Skip to content

Instantly share code, notes, and snippets.

@JuanCrg90
Created January 31, 2020 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JuanCrg90/eea3ab77159692037a0642267cae4535 to your computer and use it in GitHub Desktop.
Save JuanCrg90/eea3ab77159692037a0642267cae4535 to your computer and use it in GitHub Desktop.
Ignore VCR in ruby test
def test_request
WebMock.allow_net_connect!
VCR.turned_off do
response = Hashie::Mash.new(MyApi::Api.new('param').endpoint_call.json)
assert_equal 0, response.number
assert_equal 1234, response.total
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment