summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-06-29 00:57:50 +0000
committerLuke Kanies <luke@madstop.com>2005-06-29 00:57:50 +0000
commit573d3018a67521f37dbbd46e86c7d1d8b7bc2703 (patch)
treebcf0022d162bb4ed04db9c08cc73bfafb0096c18
parent0ba9d71b5578d4d0b390b63aa142955f7a2d4c8e (diff)
downloadpuppet-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.rb9
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