提交 9ab83b1c 编写于 作者: J Joshua Peek

Don't include the path when checking class collisions [#545 state:resolved]

上级 c51db4d7
......@@ -169,6 +169,7 @@ class Create < Base
# Ruby or Rails. In the future, expand to check other namespaces
# such as the rest of the user's app.
def class_collisions(*class_names)
path = class_names.shift
class_names.flatten.each do |class_name|
# Convert to string to allow symbol arguments.
class_name = class_name.to_s
......
require 'generators/generator_test_helper'
module Admin
end
class RailsControllerGeneratorTest < GeneratorTestCase
def test_controller_generates_controller
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册