diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-26 10:40:02 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-26 11:59:14 +0200 |
commit | 2f3681dfc24e51698b9b900a5d03950da4508d2c (patch) | |
tree | 2146601abf73dd53441764fc8845c75795a49bac /railties/lib/generators/rails/integration_test | |
parent | 6bd101188e3396317d93d2d0692587d577ad9662 (diff) | |
download | rails-2f3681dfc24e51698b9b900a5d03950da4508d2c.tar.gz rails-2f3681dfc24e51698b9b900a5d03950da4508d2c.tar.bz2 rails-2f3681dfc24e51698b9b900a5d03950da4508d2c.zip |
Clean up class collisions check and a class method helper.
Diffstat (limited to 'railties/lib/generators/rails/integration_test')
-rw-r--r-- | railties/lib/generators/rails/integration_test/integration_test_generator.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/generators/rails/integration_test/integration_test_generator.rb b/railties/lib/generators/rails/integration_test/integration_test_generator.rb index 00afaf70ab..7071d5ec50 100644 --- a/railties/lib/generators/rails/integration_test/integration_test_generator.rb +++ b/railties/lib/generators/rails/integration_test/integration_test_generator.rb @@ -1,9 +1,7 @@ module Rails module Generators class IntegrationTestGenerator < NamedBase - def check_class_collisions - class_collisions "#{class_name}Test" - end + check_class_collisions :suffix => "Test" def create_test_files template 'integration_test.rb', File.join('test/integration', class_path, "#{file_name}_test.rb") |