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.rb11
1 files changed, 11 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..b8efda8df3
--- /dev/null
+++ b/railties/lib/generators/rails/performance_test/performance_test_generator.rb
@@ -0,0 +1,11 @@
+module Rails
+ module Generators
+ class PerformanceTestGenerator < NamedBase
+ check_class_collision :suffix => "Test"
+
+ def create_test_files
+ template 'performance_test.rb', File.join('test/performance', class_path, "#{file_name}_test.rb")
+ end
+ end
+ end
+end