Sha256: b10daa2c001d214d05273918ae165c1371c90a68d7e6df329d8142244635de0a

Contents?: true

Size: 643 Bytes

Versions: 29

Compression:

Stored size: 643 Bytes

Contents

require "spec_helper"

describe DataMigrate::Config do

  it "sets default data_migrations_path path", :no_override do
    expect(DataMigrate.config.data_migrations_path).to eq "db/data/"
  end

  describe "data migration path configured" do
    before do
      @before = DataMigrate.config.data_migrations_path
      DataMigrate.configure do |config|
        config.data_migrations_path = "db/awesome/"
      end
    end

    after do
      DataMigrate.configure do |config|
        config.data_migrations_path = @before
      end
    end

    it do
      expect(DataMigrate.config.data_migrations_path).to eq "db/awesome/"
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
data_migrate-8.4.2 spec/data_migrate/config_spec.rb
data_migrate-8.4.1 spec/data_migrate/config_spec.rb
data_migrate-8.4.0 spec/data_migrate/config_spec.rb
data_migrate-8.3.0 spec/data_migrate/config_spec.rb
data_migrate-8.2.0 spec/data_migrate/config_spec.rb
data_migrate-8.1.1 spec/data_migrate/config_spec.rb
data_migrate-8.1.0 spec/data_migrate/config_spec.rb
data_migrate-8.0.0 spec/data_migrate/config_spec.rb
data_migrate-8.0.0.rc2 spec/data_migrate/config_spec.rb
data_migrate-8.0.0.rc1 spec/data_migrate/config_spec.rb
data_migrate-7.0.2 spec/data_migrate/config_spec.rb
data_migrate-7.0.1 spec/data_migrate/config_spec.rb
data_migrate-7.0.0 spec/data_migrate/config_spec.rb
data_migrate-6.8.0 spec/data_migrate/config_spec.rb
data_migrate-6.7.0 spec/data_migrate/config_spec.rb
data_migrate-6.6.2 spec/data_migrate/config_spec.rb
data_migrate-6.6.0 spec/data_migrate/config_spec.rb
data_migrate-6.5.0 spec/data_migrate/config_spec.rb
data_migrate-6.4.0 spec/data_migrate/config_spec.rb
data_migrate-6.3.0 spec/data_migrate/config_spec.rb