Add test case to ensure graceful failure on OSX.
This commit is contained in:
parent
ade6c33dd2
commit
1e1c8b287a
1 changed files with 12 additions and 0 deletions
|
@ -54,4 +54,16 @@ describe 'apt' do
|
|||
it { should contain_file('puppetlabs.list').with_content(/^deb http:\/\/apt.puppetlabs.com precise main$/) }
|
||||
it { should contain_file('puppetlabs.list').with_content(/^deb-src http:\/\/apt.puppetlabs.com precise main$/) }
|
||||
end
|
||||
|
||||
context 'with unsupported osfamily' do
|
||||
let :facts do
|
||||
{ :osfamily => 'Darwin', }
|
||||
end
|
||||
|
||||
it do
|
||||
expect {
|
||||
should compile
|
||||
}.to raise_error(Puppet::Error, /This module only works on Debian or derivatives like Ubuntu/)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue