Add puppetlabs_spec_helper gem code
This commit is contained in:
parent
4c773f9f36
commit
3c8765e74b
5
deployment/puppet/haproxy/.fixtures.yml
Normal file
5
deployment/puppet/haproxy/.fixtures.yml
Normal file
@ -0,0 +1,5 @@
|
||||
fixtures:
|
||||
repositories:
|
||||
concat: "git://github.com/ripienaar/puppet-concat.git"
|
||||
symlinks:
|
||||
haproxy: "#{source_dir}"
|
@ -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'
|
||||
|
6
deployment/puppet/haproxy/spec/spec.opts
Normal file
6
deployment/puppet/haproxy/spec/spec.opts
Normal file
@ -0,0 +1,6 @@
|
||||
--format
|
||||
s
|
||||
--colour
|
||||
--loadby
|
||||
mtime
|
||||
--backtrace
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user