summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2011-10-03 11:51:05 -0700
committerJeff McCune <jeff@puppetlabs.com>2011-10-03 11:51:05 -0700
commit11c18377456bd32fc91af78300e4d4dad2c42a02 (patch)
treec774302c46efde850662da3c3588d93e21e6f570 /spec/spec_helper.rb
parent05018f68199470f5f43e68bd54c7a39c9e8b3a85 (diff)
(#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.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb1
1 files changed, 1 insertions, 0 deletions
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'