domcleal/puppet — comment on commit 118a3528498661744f345bb474e1892983f5436b
File: spec/unit/provider/augeas/augeas_spec.rb line 678
By jhelwig:

I had to change this to the following to get the tests to run on a machine without Augeas installed. Also changing the describe name to help clarify the test output.

```ruby
describe ">= 0.8.2 optimisations", :if => Puppet.features.augeas? && Puppet::Util::Package.versioncmp(Facter.value(:augeasversion), "0.8.2") >= 0 do
# ...
end
```

I was getting the error:

```
/Users/jhelwig/work/puppet/lib/puppet/util/package.rb:4:in `versioncmp': private method `scan' called for nil:NilClass (NoMethodError)
from /Users/jhelwig/work/puppet/spec/unit/provider/augeas/augeas_spec.rb:678
```