rodjek / rspec-puppet

RSpec tests for your Puppet manifests
http://rspec-puppet.com
MIT License
364 stars 203 forks source link

796 Fix issues with `puppet` gem removal of `default_env` #797

Closed sgnn7 closed 4 years ago

sgnn7 commented 4 years ago

Since this is now changed to DEFAULT_ENV, we now create the old function alias to retain functionality.

Bug: https://github.com/rodjek/rspec-puppet/issues/796 Upstream: https://github.com/puppetlabs/puppet/blob/94df3c1a3992d89b2d7d5db8a70373c135bdd86b/lib/puppet/util.rb

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.03%) to 85.452% when pulling 73fbbe2f1c5214cbcfad81e0a6af9de08bcf1f50 on sgnn7:796-fix-puppet-monkeypatch into 6e35e920f84f6e72de108ece3a8e7ffc399fda87 on rodjek:master.

scotje commented 4 years ago

Tested this locally and it allows pdk test unit to run successfully on my test module.