summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHunter Haugen <h.haugen@gmail.com>2012-08-27 17:11:02 -0700
committerHunter Haugen <h.haugen@gmail.com>2012-08-27 17:13:07 -0700
commitaba70abc83d4a7c947356cc16cd1ac366288945c (patch)
tree074c3080f21eced0d2c1f1ad3326391332873720 /spec
parent4e59418ffd2f2694b9af1fb9af3faaf8d19efaf0 (diff)
Add $concat_basedir custom fact variable for spec tests
Diffstat (limited to 'spec')
-rw-r--r--spec/classes/haproxy_spec.rb7
1 files 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