diff --git a/spec/acceptance/ini_setting_spec.rb b/spec/acceptance/ini_setting_spec.rb index 177cf7ca6..34c3deb11 100644 --- a/spec/acceptance/ini_setting_spec.rb +++ b/spec/acceptance/ini_setting_spec.rb @@ -22,7 +22,7 @@ describe file(path) do it { should be_file } #XXX Solaris 10 doesn't support multi-line grep - it("should contain #{content}", :unless => fact('operatingsystemrelease').match(/^10_u\d+$/)) { + it("should contain #{content}", :unless => fact('osfamily') == 'Solaris') { should contain(content) } end @@ -73,7 +73,7 @@ describe file('/tmp/ini_setting.ini') do it { should be_file } #XXX Solaris 10 doesn't support multi-line grep - it("should contain four = five\n[one]\ntwo = three", :unless => fact('operatingsystemrelease').match(/^10_u\d+$/)) { + it("should contain four = five\n[one]\ntwo = three", :unless => fact('osfamily') == 'Solaris') { should contain("four = five\n[one]\ntwo = three") } end diff --git a/spec/acceptance/ini_subsetting_spec.rb b/spec/acceptance/ini_subsetting_spec.rb index 07f540f98..929e9b859 100644 --- a/spec/acceptance/ini_subsetting_spec.rb +++ b/spec/acceptance/ini_subsetting_spec.rb @@ -72,7 +72,7 @@ describe file('/tmp/ini_subsetting.ini') do it { should be_file } #XXX Solaris 10 doesn't support multi-line grep - it("should contain [one]\nkey = alphabet betatrons", :unless => fact('operatingsystemrelease').match(/^10_u\d+$/)) { + it("should contain [one]\nkey = alphabet betatrons", :unless => fact('osfamily') == 'Solaris') { should contain("[one]\nkey = alphabet betatrons") } end