~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/railties/lib/rails_generator/generators/components/integration_test/integration_test_generator.rb

  • Committer: Michael Forrest
  • Date: 2010-10-15 16:28:50 UTC
  • Revision ID: michael.forrest@canonical.com-20101015162850-tj2vchanv0kr0dun
refrozeĀ gems

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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