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