Skip to content

Commit

Permalink
Test fixes for OS support
Browse files Browse the repository at this point in the history
  • Loading branch information
dig412 authored and jhoblitt committed May 23, 2015
1 parent b0b97a0 commit 4456cf6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions spec/unit/classes/selenium_params_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@

it { should contain_class('selenium::params') }
end

context 'for osfamily Debian' do
let(:facts) {{ :osfamily => 'Debian' }}

it { should contain_class('selenium::params') }
end

context 'unsupported osfamily' do
let :facts do
{
:osfamily => 'Debian',
:operatingsystem => 'Debian',
:osfamily => 'Suse',
:operatingsystem => 'SuSE',
}
end

it 'should fail' do
expect { should contain_class('selenium::params') }.
to raise_error(Puppet::Error, /not supported on Debian/)
to raise_error(Puppet::Error, /not supported on SuSE/)
end
end

Expand Down

0 comments on commit 4456cf6

Please sign in to comment.