Sha256: 0aa15a86be6185c5e727aeb3c3a97835cc517d0d07c50074bb0074186d1e88e4
Contents?: true
Size: 795 Bytes
Versions: 30
Compression:
Stored size: 795 Bytes
Contents
require File.expand_path(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
30 entries across 30 versions & 2 rubygems