Sha256: 01687a6787e7a62b0d987644d5e739bd8c15f387f66cbc09a43da5cc6e7133af
Contents?: true
Size: 645 Bytes
Versions: 54
Compression:
Stored size: 645 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' module Cucumber module Formatter describe ColorIO do describe "<<" do it "should convert to a print using kernel" do color_io = ColorIO.new Kernel.should_receive(:print).with("monkeys") color_io << "monkeys" end it "should allow chained <<" do color_io = ColorIO.new Kernel.should_receive(:print).with("monkeys") Kernel.should_receive(:print).with(" are tasty") color_io << "monkeys" << " are tasty" end end end end end
Version data entries
54 entries across 54 versions & 6 rubygems