From cdd43825cee233af478d807cddda346e9d1fe142 Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Wed, 7 Jul 2010 10:30:15 -0700 Subject: [#4114] Fix failures in the unit tests The initial commit changed the name of a method (close -> close_all) and changed the way the array log destination worked before we saw that the unit tests were using it differently. --- lib/puppet/util/log/destinations.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/puppet/util/log/destinations.rb b/lib/puppet/util/log/destinations.rb index 403733d35..e748e5108 100644 --- a/lib/puppet/util/log/destinations.rb +++ b/lib/puppet/util/log/destinations.rb @@ -218,17 +218,12 @@ end Puppet::Util::Log.newdesttype :array do match "Array" - attr_accessor :messages - def initialize - @messages = [] + def initialize(messages) + @messages = messages end def handle(msg) @messages << msg end - - def close - @messages.clear - end end -- cgit