Sha256: a6a509e3eb32acc1dc3b59f054d0100966902bf7b69bacaf89ae4ffc41f6f962
Contents?: true
Size: 777 Bytes
Versions: 8
Compression:
Stored size: 777 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' require 'cucumber/formatter/color_io' module Cucumber module Formatter describe ColorIO do describe "<<" do it "should convert to a print using kernel" do kernel = mock('Kernel') color_io = ColorIO.new(kernel, nil) kernel.should_receive(:print).with("monkeys") color_io << "monkeys" end it "should allow chained <<" do kernel = mock('Kernel') color_io = ColorIO.new(kernel, nil) 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
8 entries across 8 versions & 2 rubygems