diff --git a/test/integration/controller_naming_test.rb b/test/integration/controller_naming_test.rb new file mode 100644 index 0000000..6bd9821 --- /dev/null +++ b/test/integration/controller_naming_test.rb @@ -0,0 +1,10 @@ +require "#{File.dirname(__FILE__)}/../test_helper" + +class ControllerNamingTest < ActionController::IntegrationTest + + should 'not have controllers with same name in different folders' do + controllers = Dir.glob("#{RAILS_ROOT}/app/controllers/**/*_controller.rb").map { |item| item.split(/\//).last } + assert_equal controllers.uniq, controllers + end + +end -- libgit2 0.21.2