Sha256: 5a7ce0597438fc36202fc12dd48f53e49bd9dc9212da8dc10be96e4dbb1d3ce3
Contents?: true
Size: 464 Bytes
Versions: 5
Compression:
Stored size: 464 Bytes
Contents
require File.expand_path("../spec_helper", __FILE__) module Rews describe "log" do it "should log to a logger if set" do logger = Object.new stub(Rews).logger{logger} mock(logger).warn("boo") Rews.log{|l| l.warn("boo")}.should == nil end it "should do nothing if no logger set" do stub(Rews).logger{nil} lambda { Rews.log{|l| raise "boo"}.should == nil }.should_not raise_error end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rews-0.5.5 | spec/rews_spec.rb |
rews-0.5.4 | spec/rews_spec.rb |
rews-0.5.3 | spec/rews_spec.rb |
rews-0.5.1 | spec/rews_spec.rb |
rews-0.5.0 | spec/rews_spec.rb |