diff options
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 |