Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Flavio Castelli
committed
Dec 13, 2010
1 parent
3d0613a
commit 2cecf8d
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
require 'rubygems' | |||
require "test/unit" | |||
require 'fakeweb' | |||
|
|||
class Test::Unit::TestCase | |||
def register_fake_response type, url, response_file=nil | |||
response_file = url if response_file.nil? | |||
response = File.read(File.join( File.dirname(__FILE__), | |||
"mocked_responses", response_file)) | |||
FakeWeb.register_uri(type, url, :response => response) | |||
end | |||
end |