summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@leap.se>2018-11-07 15:43:05 +0100
committerkwadronaut <kwadronaut@leap.se>2018-11-07 15:43:05 +0100
commitd30831f7214da266ad943cf4013f0632e8b15d48 (patch)
treee04489f4d3755c91c637ac413596c172300c3aad /spec/spec_helper.rb
parent4380e2eabd94d8f0df7f63c642dd46ec4783ef07 (diff)
parentb1af45d47d3e1441405a9b4b67f44f7d6008486a (diff)
Merge remote-tracking branch 'riseup/master'
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
new file mode 100644
index 0000000..3cca63a
--- /dev/null
+++ b/spec/spec_helper.rb
@@ -0,0 +1,12 @@
+# https://puppetlabs.com/blog/testing-modules-in-the-puppet-forge
+require 'puppetlabs_spec_helper/module_spec_helper'
+
+fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
+
+RSpec.configure do |c|
+
+ c.manifest_dir = File.join(fixture_path, 'manifests')
+ c.module_path = File.join(fixture_path, 'modules')
+
+ c.color = true
+end