Permalink
Browse files

Nested class gets qualified names.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 73cc103 commit 2e0b33f27781826ef399110701f3da541d36eca3 @jeremy jeremy committed Nov 11, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/rails_generator_test.rb
@@ -104,8 +104,8 @@ def test_named_generator_attributes
assert_equal 'Admin::Foo', g.class_name
assert_equal 'foo', g.singular_name
assert_equal 'foos', g.plural_name
- assert_equal g.singular_name, g.file_name
- assert_equal g.plural_name, g.table_name
+ assert_equal "admin_#{g.singular_name}", g.file_name
+ assert_equal "admin_#{g.plural_name}", g.table_name
assert_equal %w(bar baz), g.args
end

0 comments on commit 2e0b33f

Please sign in to comment.