diff options
| -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 |
