author | ymh <ymh.work@gmail.com> |
Fri, 15 Jan 2016 15:35:00 +0100 | |
changeset 28 | b0b56e0f8c7f |
child 406 | cf0f23803a53 |
permissions | -rw-r--r-- |
28 | 1 |
require 'puppetlabs_spec_helper/module_spec_helper' |
2 |
require 'rspec-puppet-facts' |
|
3 |
include RspecPuppetFacts |
|
4 |
||
5 |
def fixture_path |
|
6 |
File.expand_path(File.join(__FILE__, '..', 'fixtures')) |
|
7 |
end |
|
8 |
||
9 |
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../')) |
|
10 |
||
11 |
RSpec.configure do |c| |
|
12 |
c.add_setting :fixture_path, :default => fixture_path |
|
13 |
c.mock_with(:rspec) |
|
14 |
c.hiera_config = File.join(fixture_path, '/hiera/hiera.yaml') |
|
15 |
end |