aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test
diff options
context:
space:
mode:
authorGaston Ramos <ramos.gaston@gmail.com>2010-09-17 21:24:04 -0300
committerGaston Ramos <ramos.gaston@gmail.com>2010-09-27 15:25:44 -0300
commitf85b38a36b68488e94e9950fd15ec29a21bf6917 (patch)
treed2c11f14832da5e5fd5a233268cdeb8fcf0dc9f2 /activeresource/test
parente405dbcb4896054d517c6e0cb8b737e5e632c617 (diff)
downloadrails-f85b38a36b68488e94e9950fd15ec29a21bf6917.tar.gz
rails-f85b38a36b68488e94e9950fd15ec29a21bf6917.tar.bz2
rails-f85b38a36b68488e94e9950fd15ec29a21bf6917.zip
- added mock to test ActiveResource::MissingPrefixParam in finder_test
Diffstat (limited to 'activeresource/test')
-rw-r--r--activeresource/test/abstract_unit.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activeresource/test/abstract_unit.rb b/activeresource/test/abstract_unit.rb
index 129efeb879..544aede002 100644
--- a/activeresource/test/abstract_unit.rb
+++ b/activeresource/test/abstract_unit.rb
@@ -97,6 +97,7 @@ def setup_response
mock.put "/people/1/addresses/1.xml", {}, nil, 204
mock.delete "/people/1/addresses/1.xml", {}, nil, 200
mock.post "/people/1/addresses.xml", {}, nil, 201, 'Location' => '/people/1/addresses/5'
+ mock.get "/people/1/addresses/99.xml", {}, nil, 404
mock.get "/people//addresses.xml", {}, nil, 404
mock.get "/people//addresses/1.xml", {}, nil, 404
mock.put "/people//addresses/1.xml", {}, nil, 404