Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Generic webmock methods inside spec_helper.rb for rspec tests
# inside spec_helper.rb
def enable_http_request
WebMock.reset!
WebMock.allow_net_connect!
end
def disable_http_request
WebMock.reset!
WebMock.disable_net_connect!
end
# usage inside your own spec files
# before do
# enable_http_request
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.