diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3d79f916..a0b99fd2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -11,7 +11,7 @@ add_custom_fact :mongodb_version, '2.4.14' # puppetlabs-mongodb add_custom_fact :root_home, '/root' # puppetlabs-stdlib add_custom_fact :puppetversion, Puppet.version # Facter, but excluded from rspec-puppet-facts -add_custom_fact :puppet_environmentpath, Gem::Version.new(Puppet.version) >= Gem::Version.new('4.0') ? '/etc/puppetlabs/code/environments' : '/etc/puppet/environments' # puppetlabs-stdlib +add_custom_fact :puppet_environmentpath, Gem::Version.new(Puppet.version) >= Gem::Version.new('4.0') ? '/etc/puppetlabs/code/environments' : '' # puppetlabs-stdlib # Workaround for no method in rspec-puppet to pass undef through :params class Undef