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