From 11c18377456bd32fc91af78300e4d4dad2c42a02 Mon Sep 17 00:00:00 2001 From: Jeff McCune Date: Mon, 3 Oct 2011 11:51:05 -0700 Subject: (#9859) Add root_home fact and tests Without this patch applied, the stdlib module does not provide a root_home fact. This fact is necessary to easily determine the root account home directory on platforms Puppet is supported on. The major variations this fact address are: --- solaris: / linux: /root macosx: /var/root Spec tests using rspec have been provided as well to cover these three general cases. Windows tests are marked as pending. --- spec/spec_helper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/spec_helper.rb') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index fdc04bc..fc19cef 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,6 +7,7 @@ p dir ARGV.clear require 'puppet' +require 'facter' require 'mocha' gem 'rspec', '>=2.0.0' require 'rspec/expectations' -- cgit v1.2.3