1 class IntegrationTestGenerator < 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 # integration test directory
10 m.directory File.join('test/integration', class_path)
12 # integration test stub
13 m.template 'integration_test.rb', File.join('test/integration', class_path, "#{file_name}_test.rb")