commit
f271580ae4
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ describe 'ini_setting resource' do
|
|||
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('operatingsystemrelease').match(/^10_u\d+$/)) {
|
||||
should contain(content)
|
||||
}
|
||||
end
|
||||
|
@ -73,7 +73,7 @@ describe 'ini_setting resource' do
|
|||
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('operatingsystemrelease').match(/^10_u\d+$/)) {
|
||||
should contain("four = five\n[one]\ntwo = three")
|
||||
}
|
||||
end
|
||||
|
|
|
@ -72,7 +72,7 @@ describe 'ini_subsetting resource' do
|
|||
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('operatingsystemrelease').match(/^10_u\d+$/)) {
|
||||
should contain("[one]\nkey = alphabet betatrons")
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue