Sha256: 55b64c9fb68922585c6ba2e68df6ba0bae9ef1dfb7a610b33970e224ff0e8904

Contents?: true

Size: 354 Bytes

Versions: 12

Compression:

Stored size: 354 Bytes

Contents

require 'simplecov'
SimpleCov.start

require 'tmpdir'

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

12 entries across 12 versions & 1 rubygems

Version Path
schema_dev-1.4.0 spec/spec_helper.rb
schema_dev-1.3.0 spec/spec_helper.rb
schema_dev-1.2.5 spec/spec_helper.rb
schema_dev-1.2.4 spec/spec_helper.rb
schema_dev-1.2.3 spec/spec_helper.rb
schema_dev-1.2.2 spec/spec_helper.rb
schema_dev-1.2.1 spec/spec_helper.rb
schema_dev-1.2.0 spec/spec_helper.rb
schema_dev-1.1.0 spec/spec_helper.rb
schema_dev-1.0.3 spec/spec_helper.rb
schema_dev-1.0.2 spec/spec_helper.rb
schema_dev-1.0.1 spec/spec_helper.rb