From 2d3c573139786393a6a79a359c1fc41af5f43a47 Mon Sep 17 00:00:00 2001 From: Marco Wessel Date: Tue, 4 Mar 2014 17:30:42 +0100 Subject: [PATCH] Set up a few simple tests --- spec/spec_helper.rb | 20 ++------------------ tests/init.pp | 2 +- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a4aeeae23..6e1d96819 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,18 +1,2 @@ -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 +require 'rspec-puppet' +require 'puppetlabs_spec_helper/module_spec_helper' diff --git a/tests/init.pp b/tests/init.pp index 13a463808..1c7d29f18 100644 --- a/tests/init.pp +++ b/tests/init.pp @@ -1 +1 @@ -include ssh +class {"::ssh::server": }