summaryrefslogtreecommitdiff
path: root/puppet/modules/unbound/spec/spec_helper.rb
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-06-09 17:35:00 +0200
committervarac <varacanero@zeromail.org>2016-06-14 12:05:18 +0200
commit191e76e270c36c70b46c5d3a2418669d3c95217c (patch)
tree57aab3b6608e6e6a92c66b5f722eb2686e8a427c /puppet/modules/unbound/spec/spec_helper.rb
parentf0826bceeb5817ddf18ae1b3aed3a94f36c308f8 (diff)
git subrepo clone https://leap.se/git/puppet_unbound puppet/modules/unbound
subrepo: subdir: "puppet/modules/unbound" merged: "a26b91d" upstream: origin: "https://leap.se/git/puppet_unbound" branch: "master" commit: "a26b91d" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "cb2995b"
Diffstat (limited to 'puppet/modules/unbound/spec/spec_helper.rb')
-rw-r--r--puppet/modules/unbound/spec/spec_helper.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/puppet/modules/unbound/spec/spec_helper.rb b/puppet/modules/unbound/spec/spec_helper.rb
new file mode 100644
index 00000000..5fda5887
--- /dev/null
+++ b/puppet/modules/unbound/spec/spec_helper.rb
@@ -0,0 +1,17 @@
+dir = File.expand_path(File.dirname(__FILE__))
+$LOAD_PATH.unshift File.join(dir, 'lib')
+
+require 'mocha'
+require 'puppet'
+require 'rspec'
+require 'spec/autorun'
+
+Spec::Runner.configure do |config|
+ config.mock_with :mocha
+end
+
+# We need this because the RAL uses 'should' as a method. This
+# allows us the same behaviour but with a different method name.
+class Object
+ alias :must :should
+end