Skip to content

Instantly share code, notes, and snippets.

@iafonov
Created May 26, 2011 10:07
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 iafonov/992876 to your computer and use it in GitHub Desktop.
Save iafonov/992876 to your computer and use it in GitHub Desktop.
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