aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/cases/finder_test.rb
diff options
context:
space:
mode:
authorGaston Ramos <ramos.gaston@gmail.com>2010-09-13 17:05:52 -0300
committerGaston Ramos <ramos.gaston@gmail.com>2010-09-27 15:25:16 -0300
commita71e07d61e8bb69788b7120a5cf0d3620c6094be (patch)
tree2e1b6900b9f38e32b48582b88c285e5fa88fa6da /activeresource/test/cases/finder_test.rb
parente3d6434dd9ef052ce703b36f968eb9f6fe1f0a11 (diff)
downloadrails-a71e07d61e8bb69788b7120a5cf0d3620c6094be.tar.gz
rails-a71e07d61e8bb69788b7120a5cf0d3620c6094be.tar.bz2
rails-a71e07d61e8bb69788b7120a5cf0d3620c6094be.zip
- elmenth_path raise an ActiveResource::MissingPrefixParam exception when prefix_options does not has all required prefix_options ex: class StreetAddress < ActiveResource::Base self.site = "http://37s.sunrise.i:3000/people/:person_id/" end
StreetAddress.element_path(1) # => ActiveResource::MissingPrefixParam
Diffstat (limited to 'activeresource/test/cases/finder_test.rb')
-rw-r--r--activeresource/test/cases/finder_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/test/cases/finder_test.rb b/activeresource/test/cases/finder_test.rb
index fd09ef46d7..ebb783996d 100644
--- a/activeresource/test/cases/finder_test.rb
+++ b/activeresource/test/cases/finder_test.rb
@@ -84,7 +84,7 @@ class FinderTest < Test::Unit::TestCase
def test_find_by_id_not_found
assert_raise(ActiveResource::ResourceNotFound) { Person.find(99) }
- assert_raise(ActiveResource::ResourceNotFound) { StreetAddress.find(1) }
+ assert_raise(ActiveResource::ResourceNotFound) { StreetAddress.find(99, :params => {:person_id => 1}) }
end
def test_find_all_sub_objects