Merge branch 'fix/2.5.x/facter_loader' into 2.5.x

* fix/2.5.x/facter_loader:
  (maint) Fix spec failures resulting from Facter API changes
This commit is contained in:
Jeff McCune 2012-10-25 15:38:50 -07:00
commit 3f310ec874

View file

@ -4,7 +4,15 @@ require 'spec_helper'
describe "PE Version specs" do describe "PE Version specs" do
before :each do before :each do
Facter.collection.loader.load(:pe_version) # Explicitly load the pe_version.rb file which contains generated facts
# that cannot be automatically loaded. Puppet 2.x implements
# Facter.collection.load while Facter 1.x markes Facter.collection.load as
# a private method.
if Facter.collection.respond_to? :load
Facter.collection.load(:pe_version)
else
Facter.collection.loader.load(:pe_version)
end
end end
context "If PE is installed" do context "If PE is installed" do