1 class PerformanceTestGenerator < Rails::Generator::NamedBase
2 default_options :skip_migration => false
6 # Check for class naming collisions.
7 m.class_collisions class_name, "#{class_name}Test"
9 # performance test directory
10 m.directory File.join('test/performance', class_path)
12 # performance test stub
13 m.template 'performance_test.rb', File.join('test/performance', class_path, "#{file_name}_test.rb")