Sha256: 9ebaf99d74c0e04ab19c3809dfb198112fc6d4e085b72cd588213f74eb9fa7ad

Contents?: true

Size: 400 Bytes

Versions: 13

Compression:

Stored size: 400 Bytes

Contents

require 'simplecov'
SimpleCov.start

require 'rspec/given'
require 'tmpdir'
require 'webmock/rspec'

require 'schema_dev/config'

def in_tmpdir
  Dir.mktmpdir do |dir|
    Dir.chdir(dir) do
      yield
    end
  end
end

def get_config(data)
  SchemaDev::Config._reset
  in_tmpdir do
    Pathname.new(SchemaDev::CONFIG_FILE).open("w") {|f| f.write data.to_yaml }
    SchemaDev::Config.load
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
schema_dev-3.7.0 spec/spec_helper.rb
schema_dev-3.6.2 spec/spec_helper.rb
schema_dev-3.6.1 spec/spec_helper.rb
schema_dev-3.6.0 spec/spec_helper.rb
schema_dev-3.5.1 spec/spec_helper.rb
schema_dev-3.5.0 spec/spec_helper.rb
schema_dev-3.4.0 spec/spec_helper.rb
schema_dev-3.3.0 spec/spec_helper.rb
schema_dev-3.2.4 spec/spec_helper.rb
schema_dev-3.2.3 spec/spec_helper.rb
schema_dev-3.2.2 spec/spec_helper.rb
schema_dev-3.2.1 spec/spec_helper.rb
schema_dev-3.2.0 spec/spec_helper.rb