mirror of
https://github.com/github/rails.git
synced 2026-01-26 06:48:59 -05:00
Don't include the path when checking class collisions [#545 state:resolved]
This commit is contained in:
@@ -169,6 +169,7 @@ HELP
|
||||
# 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
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
require 'generators/generator_test_helper'
|
||||
|
||||
module Admin
|
||||
end
|
||||
|
||||
class RailsControllerGeneratorTest < GeneratorTestCase
|
||||
|
||||
def test_controller_generates_controller
|
||||
|
||||
Reference in New Issue
Block a user