Sha256: ade3f5e56b3f3f8dc4f3145725f0ccff76e8d118fc08bd21d0aa654104b28f15

Contents?: true

Size: 683 Bytes

Versions: 100

Compression:

Stored size: 683 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
          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

100 entries across 100 versions & 12 rubygems

Version Path
aslakhellesoy-cucumber-0.3.10 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.100 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.101.2 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.101 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.102.1 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.102.2 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.102 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.103 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.104 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.11.1 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.11.200907091518 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.11.3 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.11.5 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.11.6 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.11 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.6.1 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.7.1 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.7.2 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.7.3 spec/cucumber/formatter/color_io_spec.rb
aslakhellesoy-cucumber-0.3.7.4 spec/cucumber/formatter/color_io_spec.rb