Merge pull request #83 from hunner/grep_sol10

Correct syntax
This commit is contained in:
Hunter Haugen 2014-02-27 13:17:25 -08:00
commit f271580ae4
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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