Sha256: 99b2e8fec9d759a6712e980b080f6b4a0944c2a9bfbcd145a811dc04fb54e075

Contents?: true

Size: 426 Bytes

Versions: 36

Compression:

Stored size: 426 Bytes

Contents

require 'pliny/commands/generator/migration'
require 'spec_helper'

describe Pliny::Commands::Generator::Migration do
  subject { described_class.new('create_artists', {}, StringIO.new) }

  around do |example|
    Dir.chdir(Dir.mktmpdir, &example)
  end

  describe '#create' do
    it 'creates a migration file' do
      subject.create
      assert_equal 1, Dir.glob("db/migrate/*_create_artists.rb").size
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
pliny-0.20.1 spec/commands/generator/migration_spec.rb
pliny-0.20.0 spec/commands/generator/migration_spec.rb
pliny-0.19.0 spec/commands/generator/migration_spec.rb
pliny-0.18.0 spec/commands/generator/migration_spec.rb
pliny-0.17.1 spec/commands/generator/migration_spec.rb
pliny-0.17.0 spec/commands/generator/migration_spec.rb
pliny-0.16.3 spec/commands/generator/migration_spec.rb
pliny-0.16.2 spec/commands/generator/migration_spec.rb
pliny-0.16.1 spec/commands/generator/migration_spec.rb
pliny-0.16.0 spec/commands/generator/migration_spec.rb
pliny-0.15.1 spec/commands/generator/migration_spec.rb
pliny-0.15.0 spec/commands/generator/migration_spec.rb
pliny-0.14.2 spec/commands/generator/migration_spec.rb
pliny-0.14.1 spec/commands/generator/migration_spec.rb
pliny-0.14.0 spec/commands/generator/migration_spec.rb
pliny-0.13.1 spec/commands/generator/migration_spec.rb