From 8ecbe8040af1993d6f3bf26e1d97e24921ec9787 Mon Sep 17 00:00:00 2001 From: Spencer Owen Date: Tue, 25 Oct 2022 09:36:46 -0600 Subject: [PATCH] fix .positive Signed-off-by: Spencer Owen --- controls/local_policies.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/local_policies.rb b/controls/local_policies.rb index db39be8..cc38a55 100644 --- a/controls/local_policies.rb +++ b/controls/local_policies.rb @@ -1308,7 +1308,7 @@ describe registry_key('HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Netlogon\\Parameters') do it { should exist } it { should have_property 'MaximumPasswordAge' } - its('MaximumPasswordAge') { should cmp.positive? } + its('MaximumPasswordAge') { should cmp > 0 } end describe registry_key('HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Netlogon\\Parameters') do it { should exist }