From aba70abc83d4a7c947356cc16cd1ac366288945c Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Mon, 27 Aug 2012 17:11:02 -0700 Subject: Add $concat_basedir custom fact variable for spec tests --- spec/classes/haproxy_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/classes/haproxy_spec.rb b/spec/classes/haproxy_spec.rb index 4c90b18..46c8124 100644 --- a/spec/classes/haproxy_spec.rb +++ b/spec/classes/haproxy_spec.rb @@ -4,7 +4,10 @@ describe 'haproxy', :type => :class do context 'on Redhat family operatingsystems' do let(:facts) do - { :osfamily => 'Redhat' } + { + :osfamily => 'Redhat', + :concat_basedir => '/dne' + } end it { should include_class('concat::setup') } @@ -58,4 +61,4 @@ describe 'haproxy', :type => :class do }.to raise_error(Puppet::Error, /operating system is not supported with the haproxy module/) end end -end \ No newline at end of file +end -- cgit v1.2.3