Skip to content

Commit ea38059

Browse files
authored
Merge pull request #61 from spencer-cdw/fix_positive2
Fix local_policies 'no such value .positive?'
2 parents 086c9b2 + 8ecbe80 commit ea38059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controls/local_policies.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@
13081308
describe registry_key('HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Netlogon\\Parameters') do
13091309
it { should exist }
13101310
it { should have_property 'MaximumPasswordAge' }
1311-
its('MaximumPasswordAge') { should cmp.positive? }
1311+
its('MaximumPasswordAge') { should cmp > 0 }
13121312
end
13131313
describe registry_key('HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Netlogon\\Parameters') do
13141314
it { should exist }

0 commit comments

Comments
 (0)