Sha256: 249651178df2d571de8a845a187f98065cca012db024e01f7403de840da71044

Contents?: true

Size: 268 Bytes

Versions: 5

Compression:

Stored size: 268 Bytes

Contents

require 'schema_dev/config'
require 'tmpdir'

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
schema_dev-0.1.6 spec/spec_helper.rb
schema_dev-0.1.5 spec/spec_helper.rb
schema_dev-0.1.4 spec/spec_helper.rb
schema_dev-0.1.3 spec/spec_helper.rb
schema_dev-0.1.2 spec/spec_helper.rb