Merge branch '2.5.x' into 2.x

* 2.5.x:
  (maint) Fix spec failures resulting from Facter API changes
This commit is contained in:
Jeff McCune 2012-10-25 15:39:27 -07:00
commit f7baf36750

View file

@ -4,7 +4,15 @@ require 'spec_helper'
describe "PE Version specs" 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
context "If PE is installed" do