- better name for prefix param test case

This commit is contained in:
Gaston Ramos
2010-09-13 17:21:49 -03:00
parent 30fb3638cc
commit 9363931f34

View File

@@ -475,7 +475,7 @@ class BaseTest < Test::Unit::TestCase
assert_equal '/people/ann%20mary/addresses/ann%20mary.xml', StreetAddress.element_path(:'ann mary', 'person_id' => 'ann mary')
end
def test_custom_element_path_without_parent_id
def test_custom_element_path_without_required_prefix_param
assert_raise ActiveResource::MissingPrefixParam do
assert_equal '/people/1/addresses/1.xml', StreetAddress.element_path(1)
end