Support Scientific Linux

Addresses issue #37
This commit is contained in:
Brett Porter
2013-08-05 13:52:09 +10:00
parent f3f521d7bc
commit 304a4343ab
3 changed files with 12 additions and 1 deletions

View File

@@ -101,6 +101,12 @@ describe 'java', :type => :class do
it { should contain_package('java').with_name('java-1.7.0-openjdk') }
end
context 'select passed value for Scientific Linux' do
let(:facts) { {:osfamily => 'RedHat', :operatingsystem => 'Scientific', :operatingsystemrelease => '6.4'} }
let(:params) { { 'distribution' => 'jre' } }
it { should contain_package('java').with_name('java-1.7.0-openjdk') }
end
context 'select default for OpenSUSE 12.3' do
let(:facts) { {:osfamily => 'Suse', :operatingsystem => 'OpenSUSE', :operatingsystemrelease => '12.3'}}
it { should contain_package('java').with_name('java-1_7_0-openjdk-devel')}