Sha256: 2be83476de184c7b52d433f4a260c5b92cd3a269bc0ad5af125d7a15dc647d40
Contents?: true
Size: 450 Bytes
Versions: 78
Compression:
Stored size: 450 Bytes
Contents
require 'spec_helper' class Hiera describe Console_logger do describe "#warn" do it "should warn to STDERR" do STDERR.expects(:puts).with("WARN: 0: foo") Time.expects(:now).returns(0) Console_logger.warn("foo") end it "should debug to STDERR" do STDERR.expects(:puts).with("DEBUG: 0: foo") Time.expects(:now).returns(0) Console_logger.debug("foo") end end end end
Version data entries
78 entries across 78 versions & 2 rubygems