Sha256: 1cb5da9c1998d247d84fef03e88d233117129d611254274180b3209853410e92
Contents?: true
Size: 322 Bytes
Versions: 2
Compression:
Stored size: 322 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'logger' require 'stringio' describe "EachWithLogging" do it "write to logger" do io = StringIO.new logger = Logger.new(io) [1,2,3,4].each_with_logging(logger){|i| 1 } io.string.split(/\n/).length.should == 4 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
each-with-logging-0.1.1 | spec/each-with-logging_spec.rb |
each-with-logging-0.1.0 | spec/each-with-logging_spec.rb |