44323f28cac2b87ef80ace1fa3f5c262f958dddf
[feedcatcher.git] /
1 class IntegrationTestGenerator < 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 # integration test directory
10 m.directory File.join('test/integration', class_path)
11
12 # integration test stub
13 m.template 'integration_test.rb', File.join('test/integration', class_path, "#{file_name}_test.rb")
14 end
15 end
16 end