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

This commit is contained in:
Joshua Peek
2008-10-13 21:43:58 -05:00
parent c51db4d7ab
commit 9ab83b1cd1
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -1,5 +1,8 @@
require 'generators/generator_test_helper'
module Admin
end
class RailsControllerGeneratorTest < GeneratorTestCase
def test_controller_generates_controller