Created
January 31, 2020 18:37
-
-
Save JuanCrg90/eea3ab77159692037a0642267cae4535 to your computer and use it in GitHub Desktop.
Ignore VCR in ruby test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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