blob: f06b4bbc3510718648cfc436fa5b9bf85245efd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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
|