From fb78b8b1f2480323812744ab43b5ebd40262a8b9 Mon Sep 17 00:00:00 2001 From: Michael Arnold Date: Sat, 3 Aug 2013 16:30:33 -0700 Subject: [PATCH] Updated rspec tests to deal with fix to template. Added shell_config to .fixtures.yml. Added a whole lot of testing of various parameters and template configurations on all supported osfamilies. --- spec/classes/smartd_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/classes/smartd_spec.rb b/spec/classes/smartd_spec.rb index 371c196..a757a80 100644 --- a/spec/classes/smartd_spec.rb +++ b/spec/classes/smartd_spec.rb @@ -4,7 +4,11 @@ context 'on a non-supported osfamily' do let(:params) {{}} - let(:facts) {{ :osfamily => 'foo' }} + let :facts do { + :osfamily => 'foo', + :operatingsystem => 'bar' + } + end it 'should fail' do expect { should raise_error(Puppet::Error, /smartd: unsupported OS family bar/)