Error undefined method
positive?' for #<RSpec::Matchers::DSL::Matcher cmp>`
#59
Labels
undefined method
positive?' for #<RSpec::Matchers::DSL::Matcher cmp>`
#59
On the windows baseline, I'm finding the following error
inspec is using a method
cmp.positive?
https://github.com/dev-sec/windows-baseline/blob/master/controls/local_policies.rb#L1291-L1318
cmp.positive? does not appear to be a valid method on the
RSpec::Matchers::DSL::Matcher
classhttps://rspec.info/documentation/3.0/rspec-expectations/RSpec/Matchers/DSL/Matcher.html
There is only 1 example in this repo of
.positive?
being used.Here is the commit where it was changed. https://github.com/dev-sec/windows-baseline/pull/50/files
Previous versions used the
its('MaximumPasswordAge') { should cmp > 0 }
syntaxThe text was updated successfully, but these errors were encountered: