summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-10-10 14:49:44 -0400
committerJames Shubin <james@shubin.ca>2014-10-10 14:49:44 -0400
commitf24cca2ac8d138aae71c019a9bf6f311395f562d (patch)
tree0f4512fdba461839588626d792be0ee08bb7d06e /spec
parent6c962083d8b100dcaeb6f11dbe61e6071f3d13f0 (diff)
downloadpuppet-gluster-f24cca2ac8d138aae71c019a9bf6f311395f562d.tar.gz
puppet-gluster-f24cca2ac8d138aae71c019a9bf6f311395f562d.tar.xz
puppet-gluster-f24cca2ac8d138aae71c019a9bf6f311395f562d.zip
Infra update for puppet-gluster...
w00t, c-i, and automatic pushing.
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
new file mode 100644
index 0000000..b51de3a
--- /dev/null
+++ b/spec/spec_helper.rb
@@ -0,0 +1,18 @@
+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
+