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

Version Path
aslakhellesoy-cucumber-0.1.100.1 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.1.100.2 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.1.100.3 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.1.100.4 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.1.100.5 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.1.99.23 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.0.1 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.0.2 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.0.3 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.0.4 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.0 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.1 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.2.1 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.2.2 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.2 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.3.1 specs/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.3.2 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.3.3 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.3.4 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.2.3 specs/cucumber/formatter/color_io_spec.rb