diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-16 02:46:50 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-16 02:46:50 +0000 |
| commit | 9a8636c3c22ca5b7d244e1a80e9c2bf8b4dffe8f (patch) | |
| tree | ca77633415402fc1c8589fff40ef329f7a87fb9a /test | |
| parent | 86b33867b156f9d80bdccf895f16ec0ac3a8a204 (diff) | |
| download | puppet-9a8636c3c22ca5b7d244e1a80e9c2bf8b4dffe8f.tar.gz puppet-9a8636c3c22ca5b7d244e1a80e9c2bf8b4dffe8f.tar.xz puppet-9a8636c3c22ca5b7d244e1a80e9c2bf8b4dffe8f.zip | |
Moving all of the configuration parameters out of puppet.rb into puppet/configuration.rb, and adding a PATH setting as requested in #307, although it does not include a default.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1784 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rwxr-xr-x | test/other/puppet.rb | 15 |
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$ |
