diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-21 22:18:58 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-21 22:18:58 +0000 |
commit | 8cb6cb58a29b422ab7d2f2917262e40ec340816d (patch) | |
tree | c3165930b746c52f09ac003246988ea243680394 /activeresource | |
parent | e6988ef2ce31553c9c5f52a8d34899e39df67694 (diff) | |
download | rails-8cb6cb58a29b422ab7d2f2917262e40ec340816d.tar.gz rails-8cb6cb58a29b422ab7d2f2917262e40ec340816d.tar.bz2 rails-8cb6cb58a29b422ab7d2f2917262e40ec340816d.zip |
HttpMock InvalidRequestError inspects the mismatched request
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource')
-rw-r--r-- | activeresource/lib/active_resource/http_mock.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activeresource/lib/active_resource/http_mock.rb b/activeresource/lib/active_resource/http_mock.rb index e22a61e6a7..f37bc7d2ad 100644 --- a/activeresource/lib/active_resource/http_mock.rb +++ b/activeresource/lib/active_resource/http_mock.rb @@ -46,7 +46,7 @@ module ActiveResource def #{method}(path, body, headers) request = ActiveResource::Request.new(:#{method}, path, body, headers) self.class.requests << request - self.class.responses[request] || raise(InvalidRequestError.new("No response recorded for: \#{request}")) + self.class.responses[request] || raise(InvalidRequestError.new("No response recorded for: \#{request.inspect}")) end EOE end @@ -56,7 +56,7 @@ module ActiveResource def #{method}(path, headers) request = ActiveResource::Request.new(:#{method}, path, nil, headers) self.class.requests << request - self.class.responses[request] || raise(InvalidRequestError.new("No response recorded for: \#{request}")) + self.class.responses[request] || raise(InvalidRequestError.new("No response recorded for: \#{request.inspect}")) end EOE end |