Sha256: e261931aa42190a1eaf74dcabab7205c192a20ae325eda56c03065088f6f2e79

Contents?: true

Size: 329 Bytes

Versions: 1

Compression:

Stored size: 329 Bytes

Contents

class TestGenerator < Rails::Generators::Base
  argument :name, :type => :string
  source_root File.expand_path('../templates', __FILE__)
  
  def copy_initializer
    template "initializer.rb", "config/initializers/test.rb"
  end
  
  def create_migration
    template "migration.rb", "db/migrate/123_create_tests.rb"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
generator_spec-0.8.1 spec/support/test_generator/test_generator.rb