FIX: reqular expression in PATH variable

Signed-off-by: Patrick Meier <patrick.meier111@googlemail.com>
This commit is contained in:
Patrick Meier 2014-07-10 12:25:50 +02:00
parent 998370b205
commit 2de4db352a

View file

@ -235,12 +235,12 @@ end
# GIS: Req 3.21-8 # GIS: Req 3.21-8
describe file('/etc/login.defs') do describe file('/etc/login.defs') do
its(:content) { should match(%r{/^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 end
# GIS: Req 3.21-8 # GIS: Req 3.21-8
describe file('/etc/login.defs') do describe file('/etc/login.defs') do
its(:content) { should match(%r{/^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 end
# GIS: Req 3.21-10 # GIS: Req 3.21-10