Class: Rspec::Generators::DataMigrationGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
MonarchMigrate::Migration::Lookup
Defined in:
lib/generators/rspec/data_migration_generator.rb

Instance Method Summary collapse

Methods included from MonarchMigrate::Migration::Lookup

#migration_exists?, #migration_lookup_at

Instance Method Details

#create_data_migration_testObject



11
12
13
14
15
# File 'lib/generators/rspec/data_migration_generator.rb', line 11

def create_data_migration_test
  if spec_file_name
    template("data_migration_spec.rb.erb", File.join(destination_dir, spec_file_name))
  end
end