Sha256: 48a4ffd5feb1a97fc015f1013be15cd5c59d59ecbb259dd4eded31d69d60af71

Contents?: true

Size: 343 Bytes

Versions: 4

Compression:

Stored size: 343 Bytes

Contents

require 'spec_helper'

require "generator_spec"

describe Imigrate::Generators::DataMigrationGenerator, type: :generator do
  destination File.expand_path("../../../tmp", __FILE__)

  before(:all) do
    prepare_destination
  end

  it "create the templated file" do
    run_generator %w{toto}
    assert_migration "db/data/toto.rb"
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
imigrate-0.9.3 spec/lib/generators/generator_spec.rb
imigrate-0.9.2 spec/lib/generators/generator_spec.rb
imigrate-0.9.1 spec/lib/generators/generator_spec.rb
imigrate-0.9.0 spec/lib/generators/generator_spec.rb