summaryrefslogtreecommitdiffstats
path: root/test/ral/providers/host
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-26 11:26:57 -0500
committerLuke Kanies <luke@madstop.com>2007-10-26 11:26:57 -0500
commitd03f68eaed6d05483128b495ad1faaf89208d66a (patch)
tree3883c1dfb9ab8b1d4eed37eda13f7bb64ee851b8 /test/ral/providers/host
parentc0a07ac724c27fce8d2673e4466e42d46d68f145 (diff)
downloadpuppet-d03f68eaed6d05483128b495ad1faaf89208d66a.tar.gz
puppet-d03f68eaed6d05483128b495ad1faaf89208d66a.tar.xz
puppet-d03f68eaed6d05483128b495ad1faaf89208d66a.zip
Changing the test/ classes so that they work from the main
test/ dir or from their own working dir, like the specs do. This was just a question of changing how their libraries are loaded.
Diffstat (limited to 'test/ral/providers/host')
-rwxr-xr-xtest/ral/providers/host/netinfo.rb2
-rwxr-xr-xtest/ral/providers/host/parsed.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ral/providers/host/netinfo.rb b/test/ral/providers/host/netinfo.rb
index f49a00beb..e513974fc 100755
--- a/test/ral/providers/host/netinfo.rb
+++ b/test/ral/providers/host/netinfo.rb
@@ -3,7 +3,7 @@
# Created by Luke Kanies on 2006-11-12.
# Copyright (c) 2006. All rights reserved.
-$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/
+require File.dirname(__FILE__) + '/../../../lib/puppettest'
require 'puppettest'
diff --git a/test/ral/providers/host/parsed.rb b/test/ral/providers/host/parsed.rb
index 5499b0220..98c3acb2e 100755
--- a/test/ral/providers/host/parsed.rb
+++ b/test/ral/providers/host/parsed.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/
+require File.dirname(__FILE__) + '/../../../lib/puppettest'
require 'etc'
require 'puppettest'