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 }