summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-10 01:39:48 +0000
committerLuke Kanies <luke@madstop.com>2005-07-10 01:39:48 +0000
commitcf817e75d90828f66744cc2ec6db1af6968b5031 (patch)
treee0bc54886bb87aef8d8fde71cbe3a457af334ca6
parentd36b4c0c5f4ed64740d9486e6462b1c3bd9b7c7a (diff)
downloadpuppet-cf817e75d90828f66744cc2ec6db1af6968b5031.tar.gz
puppet-cf817e75d90828f66744cc2ec6db1af6968b5031.tar.xz
puppet-cf817e75d90828f66744cc2ec6db1af6968b5031.zip
changing Log.destination to Log.destination=()
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@341 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--test/other/tc_log.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/other/tc_log.rb b/test/other/tc_log.rb
index b00024636..eee3e192c 100644
--- a/test/other/tc_log.rb
+++ b/test/other/tc_log.rb
@@ -15,7 +15,7 @@ class TestLog < Test::Unit::TestCase
def teardown
system("rm -f %s" % @@logfile)
- Puppet::Log.destination(:console)
+ Puppet::Log.destination=(:console)
Puppet[:loglevel] = :notice
end
@@ -45,7 +45,7 @@ class TestLog < Test::Unit::TestCase
levels = nil
levels = getlevels
assert_nothing_raised() {
- Puppet::Log.destination(@@logfile)
+ Puppet::Log.destination=(@@logfile)
}
msgs = mkmsgs(levels)
assert(msgs.length == levels.length)
@@ -67,7 +67,7 @@ class TestLog < Test::Unit::TestCase
}
}
assert_nothing_raised() {
- Puppet::Log.destination("syslog")
+ Puppet::Log.destination=("syslog")
}
# there's really no way to verify that we got syslog messages...
msgs = mkmsgs(levels)
@@ -82,7 +82,7 @@ class TestLog < Test::Unit::TestCase
levels = Puppet::Log.levels
}
assert_nothing_raised() {
- Puppet::Log.destination(:console)
+ Puppet::Log.destination=(:console)
}
msgs = mkmsgs(levels)
assert(msgs.length == levels.length)
@@ -91,7 +91,7 @@ class TestLog < Test::Unit::TestCase
def test_levelmethods
assert_nothing_raised() {
- Puppet::Log.destination("/dev/null")
+ Puppet::Log.destination=("/dev/null")
}
getlevels.each { |level|
assert_nothing_raised() {