diff options
Diffstat (limited to 'spec/unit/util/log.rb')
| -rwxr-xr-x | spec/unit/util/log.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/util/log.rb b/spec/unit/util/log.rb index c42b25c74..b996f17a0 100755 --- a/spec/unit/util/log.rb +++ b/spec/unit/util/log.rb @@ -5,6 +5,14 @@ Dir.chdir(File.dirname(__FILE__)) { (s = lambda { |f| File.exist?(f) ? require(f require 'puppet/util/log' describe Puppet::Util::Log do + it "should be able to close all log destinations" do + Puppet::Util::Log.expects(:destinations).returns %w{foo bar} + Puppet::Util::Log.expects(:close).with("foo") + Puppet::Util::Log.expects(:close).with("bar") + + Puppet::Util::Log.close_all + end + describe "instances" do before do Puppet::Util::Log.stubs(:newmessage) |
