summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/other/puppet.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/other/puppet.rb b/test/other/puppet.rb
index 76d978c7c..8ffecaf3a 100755
--- a/test/other/puppet.rb
+++ b/test/other/puppet.rb
@@ -1,3 +1,5 @@
+#!/usr/bin/env ruby -I../lib -I../../lib
+
require 'puppet'
require 'puppettest'
@@ -66,6 +68,19 @@ class TestPuppetModule < Test::Unit::TestCase
assert(!obj.started?, "Object is still running")
end
+
+ def test_path
+ oldpath = ENV["PATH"]
+ cleanup do
+ ENV["PATH"] = oldpath
+ end
+ newpath = oldpath + ":" + "/something/else"
+ assert_nothing_raised do
+ Puppet[:path] = newpath
+ end
+
+ assert_equal(newpath, ENV["PATH"])
+ end
end
# $Id$