diff options
author | Saz <me@saz.sh> | 2011-11-20 21:53:45 +0100 |
---|---|---|
committer | Saz <me@saz.sh> | 2011-11-20 21:53:45 +0100 |
commit | 51412e961d41186844ec1af0cbe0d9d5bd04fb73 (patch) | |
tree | db02179fcc75d42626c67c76de45ae65f7b72fd0 /spec | |
parent | e7f96a70a85e6bff9d1c992049288649941429d0 (diff) |
changes for release on forge.puppetlabs.com
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec.opts | 6 | ||||
-rw-r--r-- | spec/spec_helper.rb | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/spec/spec.opts b/spec/spec.opts new file mode 100644 index 0000000..91cd642 --- /dev/null +++ b/spec/spec.opts @@ -0,0 +1,6 @@ +--format +s +--colour +--loadby +mtime +--backtrace diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..a4aeeae --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,18 @@ +require 'pathname' +dir = Pathname.new(__FILE__).parent +$LOAD_PATH.unshift(dir, dir + 'lib', dir + '../lib') + +require 'mocha' +require 'puppet' +gem 'rspec', '=1.2.9' +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 |