Skip to content

Instantly share code, notes, and snippets.

@iafonov
Created May 26, 2011
Embed
What would you like to do?
WebMock.allow_net_connect!
Before("@webmock") do
WebMock.disable_net_connect!(:allow_localhost => true)
end
After("@webmock") do
WebMock.allow_net_connect!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment