summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorLouis-Philippe VĂ©ronneau <pollito@riseup.net>2017-10-11 15:52:10 -0400
committerLouis-Philippe VĂ©ronneau <pollito@riseup.net>2017-10-11 15:52:10 -0400
commit10767a0016b0f46aceab9ac97738390035a112dc (patch)
tree53db5cf52694e7e4e09b37479c04e04693a4533c /spec/spec_helper.rb
parent5ef29012dccc90e68afc215be9521629a0903bc6 (diff)
copy CI infra from the shared apt module as-is
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