Closed bastelfreak closed 5 years ago
Tests are failing on puppet 6 due to the ruby version we're using there. Locally, I can reproduce the failures on puppet 5 with ruby 2.5. Equally, the tests pass on ruby 2.4 with puppet 6.
https://blog.bigbinary.com/2017/10/18/ruby-2.5-has-removed-top-level-constant-lookup.html
EDIT - Confirmed. Just compiled ruby 2.5.0 after reverting https://github.com/ruby/ruby/commit/44a2576f79 and tests pass again.
This is the line that doesn't work in 2.5 https://github.com/voxpupuli/puppet-network/blob/f992867d350177215bde36c2256446459c0a9d2d/spec/unit/provider/network_config/interfaces_spec.rb#L12
reset!
is a class method on an inner class
or something?? That hasn't been loaded???
https://github.com/voxpupuli/puppet-network/blob/f992867d350177215bde36c2256446459c0a9d2d/lib/puppet/provider/network_config/interfaces.rb#L42