summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/unit/facter/pe_required_facts_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/facter/pe_required_facts_spec.rb b/spec/unit/facter/pe_required_facts_spec.rb
index f219b37..85ff6ab 100644
--- a/spec/unit/facter/pe_required_facts_spec.rb
+++ b/spec/unit/facter/pe_required_facts_spec.rb
@@ -9,6 +9,7 @@ describe "External facts in /etc/puppetlabs/facter/facts.d/puppet_enterprise_ins
context "With Facter 1.6.17 which does not have external facts support" do
before :each do
Facter.stubs(:version).returns("1.6.17")
+ Facter::Util::Root.stubs(:root?).returns(true)
# Stub out the filesystem for stdlib
Dir.stubs(:entries).with("/etc/puppetlabs/facter/facts.d").
returns(['puppet_enterprise_installer.txt'])