FIX: Use %r for regular expressions matching

Signed-off-by: Patrick Meier <patrick.meier111@googlemail.com>
This commit is contained in:
Patrick Meier 2014-07-10 10:55:04 +02:00
parent 8a6c0eb52d
commit 998370b205

View file

@ -235,12 +235,12 @@ end
# GIS: Req 3.21-8
describe file('/etc/login.defs') do
its(:content) { should match(/^ENV_SUPATH\s+PATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin/) }
its(:content) { should match(%r{/^ENV_SUPATH\s+PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin/}) }
end
# GIS: Req 3.21-8
describe file('/etc/login.defs') do
its(:content) { should match(/^ENV_PATH\s+PATH=\/usr\/local\/bin:\/usr\/bin:\/bin/) }
its(:content) { should match(%r{/^ENV_PATH\s+PATH=/usr/local/bin:/usr/bin:/bin/}) }
end
# GIS: Req 3.21-10