diff options
Diffstat (limited to 'railties/lib/generators/rails/integration_test/integration_test_generator.rb')
-rw-r--r-- | railties/lib/generators/rails/integration_test/integration_test_generator.rb | 13 |
1 files changed, 13 insertions, 0 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 new file mode 100644 index 0000000000..a958350019 --- /dev/null +++ b/railties/lib/generators/rails/integration_test/integration_test_generator.rb @@ -0,0 +1,13 @@ +module Rails + module Generators + class IntegrationTestGenerator < NamedBase + def check_class_collisions + class_collisions class_name, "#{class_name}Test" + end + + def create_test_files + template 'integration_test.rb', File.join('test/integration', class_path, "#{file_name}_test.rb") + end + end + end +end |