Created
March 8, 2011 08:04
-
-
Save dagda1/860016 to your computer and use it in GitHub Desktop.
fakeweb.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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