Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created March 8, 2011 08:04
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 dagda1/860016 to your computer and use it in GitHub Desktop.
Save dagda1/860016 to your computer and use it in GitHub Desktop.
fakeweb.rb
require 'test_helper'
require 'fake_web'
class LeadControllerTest < ActionController::TestCase
context "given a valid url to preform a search" do
setup do
FakeWeb.register_uri(:any, "http://thesoftwaresimpleton.blogspot.com/", :body => "sample.html")
login_as_standard_user
get :search, :url => "http://thesoftwaresimpleton.blogspot.com/"
end
should respond_with :success
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment