mirror of
https://github.com/dev-sec/linux-baseline
synced 2024-11-10 13:44:14 +00:00
FIX: Use %r for regular expressions matching
Signed-off-by: Patrick Meier <patrick.meier111@googlemail.com>
This commit is contained in:
parent
8a6c0eb52d
commit
998370b205
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue