Skip to content

Commit

Permalink
Merge pull request #61 from spencer-cdw/fix_positive2
Browse files Browse the repository at this point in the history
Fix local_policies 'no such value .positive?'
  • Loading branch information
schurzi authored Oct 25, 2022
2 parents 086c9b2 + 8ecbe80 commit ea38059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controls/local_policies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit ea38059

Please sign in to comment.