Add puppetlabs_spec_helper gem code

This commit is contained in:
Hunter Haugen 2012-08-27 17:08:07 -07:00
parent 4c773f9f36
commit 3c8765e74b
4 changed files with 13 additions and 21 deletions

View File

@ -0,0 +1,5 @@
fixtures:
repositories:
concat: "git://github.com/ripienaar/puppet-concat.git"
symlinks:
haproxy: "#{source_dir}"

View File

@ -1,8 +1 @@
require 'rake'
require 'puppet-lint/tasks/puppet-lint'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = '-c'
t.pattern = 'spec/*/*_spec.rb'
end
require 'puppetlabs_spec_helper/rake_tasks'

View File

@ -0,0 +1,6 @@
--format
s
--colour
--loadby
mtime
--backtrace

View File

@ -1,13 +1 @@
require 'puppet'
require 'rubygems'
require 'rspec-puppet'
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
class Object
alias :must :should
end
require 'puppetlabs_spec_helper/module_spec_helper'