Sha256: 351cdb7890942310d627e2242412ef0a0a43c3db05daa42842510af4459f7a12
Contents?: true
Size: 560 Bytes
Versions: 8
Compression:
Stored size: 560 Bytes
Contents
require 'spec_helper' describe Berkshelf::Mixin::Logging do subject do Class.new do include Berkshelf::Mixin::Logging end.new end describe "#log" do it "returns the Berkshelf::Logger" do subject.log.should eql(Berkshelf::Logger) end end describe "#log_exception" do it "logs the exception and it's backtrace as fatal" do ex = Exception.new('msg') ex.stub(:backtrace).and_return(['one', 'two']) subject.log.should_receive(:fatal).exactly(2).times subject.log_exception(ex) end end end
Version data entries
8 entries across 8 versions & 1 rubygems