Skip to content

Commit

Permalink
Updated rspec tests to deal with fix to template.
Browse files Browse the repository at this point in the history
Added shell_config to .fixtures.yml.
Added a whole lot of testing of various parameters and template
configurations on all supported osfamilies.
  • Loading branch information
razorsedge authored and Joshua Hoblitt committed Aug 17, 2013
1 parent 3b28801 commit fb78b8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/classes/smartd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down

0 comments on commit fb78b8b

Please sign in to comment.