Skip to content

Instantly share code, notes, and snippets.

@thoughtbot
Created August 4, 2009 22:28
Show Gist options
  • Save thoughtbot/162333 to your computer and use it in GitHub Desktop.
Save thoughtbot/162333 to your computer and use it in GitHub Desktop.
require 'fake_web'
FakeWeb.allow_net_connect = false
FakeWeb.register_uri(:post, "http://somesite.com",
:string => 'response body')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment