instiki/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/performance_test_generator.rb
Jacques Distler 7600aef48b Upgrade to Rails 2.2.0
As a side benefit, fix an (non-user-visible) bug in display_s5().
Also fixed a bug where removing orphaned pages did not expire cached summary pages.
2008-10-27 01:47:01 -05:00

17 lines
489 B
Ruby

class PerformanceTestGenerator < Rails::Generator::NamedBase
default_options :skip_migration => false
def manifest
record do |m|
# Check for class naming collisions.
m.class_collisions class_name, "#{class_name}Test"
# performance test directory
m.directory File.join('test/performance', class_path)
# performance test stub
m.template 'performance_test.rb', File.join('test/performance', class_path, "#{file_name}_test.rb")
end
end
end