Skip to content

Commit

Permalink
Correct syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hunner committed Feb 27, 2014
1 parent 49433d0 commit 7de1e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/acceptance/ini_setting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('operatingsystemrelease').match(/^10_u\d+$/)) {
should contain(content)
}
end
Expand Down Expand Up @@ -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('operatingsystemrelease').match(/^10_u\d+$/)) {
should contain("four = five\n[one]\ntwo = three")
}
end
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/ini_subsetting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('operatingsystemrelease').match(/^10_u\d+$/)) {
should contain("[one]\nkey = alphabet betatrons")
}
end
Expand Down

0 comments on commit 7de1e3d

Please sign in to comment.