author | ymh <ymh.work@gmail.com> |
Thu, 10 Nov 2016 01:45:47 +0100 | |
changeset 408 | c89c11c2def7 |
parent 406 | cf0f23803a53 |
permissions | -rwxr-xr-x |
28 | 1 |
require 'puppetlabs_spec_helper/module_spec_helper' |
406
cf0f23803a53
upgrade elasticsearch to 5.0, upgrade ember
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
2 |
require 'rspec-puppet-utils' |
28 | 3 |
require 'rspec-puppet-facts' |
4 |
include RspecPuppetFacts |
|
5 |
||
6 |
def fixture_path |
|
7 |
File.expand_path(File.join(__FILE__, '..', 'fixtures')) |
|
8 |
end |
|
9 |
||
10 |
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../')) |
|
11 |
||
12 |
RSpec.configure do |c| |
|
13 |
c.add_setting :fixture_path, :default => fixture_path |
|
14 |
c.mock_with(:rspec) |
|
15 |
c.hiera_config = File.join(fixture_path, '/hiera/hiera.yaml') |
|
16 |
end |