diff options
author | Dan Bode <dan@puppetlabs.com> | 2011-11-14 22:24:01 -0800 |
---|---|---|
committer | Dan Bode <dan@puppetlabs.com> | 2011-11-16 08:45:47 -0800 |
commit | f52e93ceb161222022c0cf3b67c745521a54dd45 (patch) | |
tree | 66df7da8471d4a3c57283c48a9d5a9a3fdfabc4c /spec/spec_helper.rb | |
parent | baae368767b386cbc3e9b2d3fba7c4ea47db081a (diff) |
(#10846) add spec tests for ntp class
This commit adds some unit tests for the
ntp class.
Also adds a rakefile for running the spec tests
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a4aeeae..ab7e2db 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,18 +1,6 @@ -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 +require 'rspec-puppet' -# 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 +RSpec.configure do |c| + c.module_path = File.join(File.dirname(__FILE__), '../../') end |