7600aef48b
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.
17 lines
489 B
Ruby
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
|