diff options
author | Luke Kanies <luke@madstop.com> | 2005-06-29 00:57:50 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-06-29 00:57:50 +0000 |
commit | 573d3018a67521f37dbbd46e86c7d1d8b7bc2703 (patch) | |
tree | bcf0022d162bb4ed04db9c08cc73bfafb0096c18 | |
parent | 0ba9d71b5578d4d0b390b63aa142955f7a2d4c8e (diff) | |
download | puppet-573d3018a67521f37dbbd46e86c7d1d8b7bc2703.tar.gz puppet-573d3018a67521f37dbbd46e86c7d1d8b7bc2703.tar.xz puppet-573d3018a67521f37dbbd46e86c7d1d8b7bc2703.zip |
adding some more tests for loglevel stuff
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@313 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r-- | test/other/tc_log.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/other/tc_log.rb b/test/other/tc_log.rb index 77d33a406..edfb44f8e 100644 --- a/test/other/tc_log.rb +++ b/test/other/tc_log.rb @@ -98,4 +98,13 @@ class TestLog < Test::Unit::TestCase } } end + + def test_output + Puppet[:debug] = false + assert(Puppet.err("This is an error").is_a?(Puppet::Log)) + assert(Puppet.debug("This is debugging").nil?) + Puppet[:debug] = true + assert(Puppet.err("This is an error").is_a?(Puppet::Log)) + assert(Puppet.debug("This is debugging").is_a?(Puppet::Log)) + end end |