diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5fda588..9dbbf18 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,17 +1,13 @@ -dir = File.expand_path(File.dirname(__FILE__)) -$LOAD_PATH.unshift File.join(dir, 'lib') - -require 'mocha' require 'puppet' -require 'rspec' -require 'spec/autorun' +require 'rubygems' +require 'rspec-puppet' -Spec::Runner.configure do |config| - config.mock_with :mocha +fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures')) +RSpec.configure do |c| + c.module_path = File.join(fixture_path, 'modules') + c.manifest_dir = File.join(fixture_path, 'manifests') 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 |