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:
commit
3f310ec874
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue