Current Path : /opt/puppetlabs/puppet/vendor_modules/sshkeys_core/spec/ |
Current File : //opt/puppetlabs/puppet/vendor_modules/sshkeys_core/spec/spec_helper_local.rb |
dir = File.expand_path(File.dirname(__FILE__)) $LOAD_PATH.unshift File.join(dir, 'lib') # Container for various Puppet-specific RSpec helpers. module PuppetSpec end require 'puppet_spec/files' RSpec.configure do |config| config.before :each do |_test| base = PuppetSpec::Files.tmpdir('tmp_settings') Puppet[:vardir] = File.join(base, 'var') FileUtils.mkdir_p Puppet[:statedir] end end