Sha256: 302d1352b424ad0d9394b1aec4ecf1fbb6b35134cef4163f13f4a04510227f3b

Contents?: true

Size: 576 Bytes

Versions: 3

Compression:

Stored size: 576 Bytes

Contents

require "spec_helper"

describe DataMigrate::Config do

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

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

    after do
      DataMigrate.configure do |config|
        config.data_migrations_path = "db/data/"
      end
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
data_migrate-5.3.2 spec/data_migrate/config_spec.rb
data_migrate-5.3.1 spec/data_migrate/config_spec.rb
data_migrate-5.3.0 spec/data_migrate/config_spec.rb