83ce8ac6740a2d28ee569e47adf2dd88d72d48ea
[feedcatcher.git] /
1 class PerformanceTestGenerator < Rails::Generator::NamedBase
2 default_options :skip_migration => false
3
4 def manifest
5 record do |m|
6 # Check for class naming collisions.
7 m.class_collisions class_name, "#{class_name}Test"
8
9 # performance test directory
10 m.directory File.join('test/performance', class_path)
11
12 # performance test stub
13 m.template 'performance_test.rb', File.join('test/performance', class_path, "#{file_name}_test.rb")
14 end
15 end
16 end