提交 9f0057c5 编写于 作者: J Jeremy Kemper

Fix generator test broken by scaffold change. Closes #8402.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6778 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 0f2fd5ab
......@@ -129,9 +129,5 @@ def test_scaffold_controller_name
# Default behaviour is use the model name
g = Rails::Generator::Base.instance('scaffold', %w(Product))
assert_equal "Products", g.controller_name
# When we specify a controller name make sure it sticks!!
g = Rails::Generator::Base.instance('scaffold', %w(Product Admin))
assert_equal "Admin", g.controller_name
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册