aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails/performance_test/performance_test_generator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/generators/rails/performance_test/performance_test_generator.rb')
-rw-r--r--railties/lib/generators/rails/performance_test/performance_test_generator.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/lib/generators/rails/performance_test/performance_test_generator.rb b/railties/lib/generators/rails/performance_test/performance_test_generator.rb
new file mode 100644
index 0000000000..8e2537c2b3
--- /dev/null
+++ b/railties/lib/generators/rails/performance_test/performance_test_generator.rb
@@ -0,0 +1,12 @@
+module Rails
+ module Generators
+ class PerformanceTestGenerator < NamedBase
+ def check_class_collisions
+ class_collisions class_name, "#{class_name}Test"
+ end
+
+ def create_test_files
+ template 'performance_test.rb', File.join('test/performance', class_path, "#{file_name}_test.rb")
+ end
+ end end
+end