Skip to content

Commit

Permalink
Set up a few simple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CyBeRoni committed Mar 4, 2014
1 parent 9325650 commit 2d3c573
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
20 changes: 2 additions & 18 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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'
2 changes: 1 addition & 1 deletion tests/init.pp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ssh
class {"::ssh::server": }

0 comments on commit 2d3c573

Please sign in to comment.