Sha256: 0a5e4e0087e2ea1cdc504fbde356c11f82beea857ec38a2a5414defc2468d7ce

Contents?: true

Size: 638 Bytes

Versions: 15

Compression:

Stored size: 638 Bytes

Contents

require 'rspec'
require 'rails'
require 'sqlite3'
require 'data_migrate'
require 'pry'
require 'timecop'

RSpec.configure do |config|
  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.after(:each) do
    DataMigrate.configure do |config|
      config.data_migrations_path = @prev_data_migrations_path
    end
  end

  config.before(:each) do |example|
    if example.metadata[:no_override]
    else
      @prev_data_migrations_path = DataMigrate.config.data_migrations_path
      DataMigrate.configure do |config|
        config.data_migrations_path = "spec/db/data"
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
data_migrate-9.1.3 spec/spec_helper.rb
data_migrate-9.1.2 spec/spec_helper.rb
data_migrate-11.0.0 spec/spec_helper.rb
data_migrate-11.0.0.rc3 spec/spec_helper.rb
data_migrate-11.0.0.rc spec/spec_helper.rb
data_migrate-9.4.4 spec/spec_helper.rb
data_migrate-9.4.2 spec/spec_helper.rb
data_migrate-9.4.1 spec/spec_helper.rb
data_migrate-9.4.0 spec/spec_helper.rb
data_migrate-9.3.0 spec/spec_helper.rb
data_migrate-9.2.0 spec/spec_helper.rb
data_migrate-9.1.1 spec/spec_helper.rb
data_migrate-9.1.0 spec/spec_helper.rb
data_migrate-10.0.3.rc spec/spec_helper.rb
data_migrate-10.0.0.rc1 spec/spec_helper.rb