Browse files

test that element name includes module nesting

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4cf8bf7 commit bc3d150386ccc5844aa895d90e2cf525068310d9 @jeremy jeremy committed Dec 21, 2006
Showing with 8 additions and 0 deletions.
  1. +8 −0 activeresource/test/base_test.rb
View
8 activeresource/test/base_test.rb
@@ -98,6 +98,14 @@ def test_custom_collection_name
assert_equal 'addresses', StreetAddress.collection_name
end
+ def test_nested_element_name
+ self.class.const_set :Actor, Class.new(Person)
+ assert_equal 'base_test/actor', Actor.element_name
+ ensure
+ self.class.remove_const :Actor rescue nil
+ end
+
+
def test_prefix
assert_equal "/", Person.prefix
end

0 comments on commit bc3d150

Please sign in to comment.