summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-11-04 14:39:23 +0100
committervarac <varacanero@zeromail.org>2016-11-04 14:39:23 +0100
commit5d001efb65f4ac2afa39d17b7b62d4f861f450a3 (patch)
tree88b282297150f4890fce19182206dc9bfa0f3a9d /spec/spec_helper.rb
parent33c61e8df59db1abbed379a9e9790946060a8f1e (diff)
parent584b7aad338206026d62d846122e6bef532a2d2a (diff)
Merge remote-tracking branch 'shared/master' into leap_master
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 21d1a98..3cca63a 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,12 +1,12 @@
# https://puppetlabs.com/blog/testing-modules-in-the-puppet-forge
-require 'rspec-puppet'
-require 'mocha/api'
+require 'puppetlabs_spec_helper/module_spec_helper'
-RSpec.configure do |c|
+fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
- c.module_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
- c.color = true
+RSpec.configure do |c|
- #Puppet.features.stubs(:root? => true)
+ c.manifest_dir = File.join(fixture_path, 'manifests')
+ c.module_path = File.join(fixture_path, 'modules')
+ c.color = true
end