From 7de1e3d7a41b0573f1b5e0d7f005dba70603eade Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Thu, 27 Feb 2014 13:16:23 -0800 Subject: [PATCH] Correct syntax --- spec/acceptance/ini_setting_spec.rb | 4 ++-- spec/acceptance/ini_subsetting_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/acceptance/ini_setting_spec.rb b/spec/acceptance/ini_setting_spec.rb index cdc7e8a..177cf7c 100644 --- a/spec/acceptance/ini_setting_spec.rb +++ b/spec/acceptance/ini_setting_spec.rb @@ -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 diff --git a/spec/acceptance/ini_subsetting_spec.rb b/spec/acceptance/ini_subsetting_spec.rb index 123c11d..07f540f 100644 --- a/spec/acceptance/ini_subsetting_spec.rb +++ b/spec/acceptance/ini_subsetting_spec.rb @@ -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