Skip to content

Instantly share code, notes, and snippets.

@hasham2
Created January 19, 2010 10:46
Show Gist options
  • Select an option

  • Save hasham2/280840 to your computer and use it in GitHub Desktop.

Select an option

Save hasham2/280840 to your computer and use it in GitHub Desktop.
require 'test_helper'
require 'fakeweb'
require 'shoulda'
class UserTest < ActiveSupport::TestCase
def setup
FakeWeb.allow_net_connect = false
end
#All test cases go here
def teardown
FakeWeb.allow_net_connect = true
FakeWeb.clean_registry
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment