diff options
author | luke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a> | 2006-05-23 15:43:09 +0000 |
---|---|---|
committer | luke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a> | 2006-05-23 15:43:09 +0000 |
commit | 6c01e040cad38e0317f4389bd01a98357aee0637 (patch) | |
tree | 2e811fdac2e7dbeede7314aab37b29f6908a9600 /tests/tc_simple.rb | |
parent | 22bd24b2a2d29431320f67ebbb93d36fbae1c9ba (diff) | |
download | facter-6c01e040cad38e0317f4389bd01a98357aee0637.tar.gz facter-6c01e040cad38e0317f4389bd01a98357aee0637.tar.xz facter-6c01e040cad38e0317f4389bd01a98357aee0637.zip |
Fixing install and tests so that there are no errors, hopefully.
git-svn-id: http://reductivelabs.com/svn/facter/trunk@102 1f5c1d6a-bddf-0310-8f58-fc49e503516a
Diffstat (limited to 'tests/tc_simple.rb')
-rw-r--r-- | tests/tc_simple.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/tc_simple.rb b/tests/tc_simple.rb index 8510fcf..bf5cfc2 100644 --- a/tests/tc_simple.rb +++ b/tests/tc_simple.rb @@ -1,9 +1,8 @@ #! /usr/bin/env ruby -# $Id$ -# -if __FILE__ == $0 # Make this library first! - $:.unshift '../lib' -end + +$facterbase = File.dirname(File.dirname(__FILE__)) +libdir = File.join($facterbase, "lib") +$:.unshift libdir require 'test/unit' require 'facter' @@ -325,3 +324,5 @@ end "Got incorrect value for autoloaded fact") end end + +# $Id$ |