Sha256: 0220fa9d2b9b1eff717572c46d6056d4aa0f696dc1f720d0033e39bc94e393d6

Contents?: true

Size: 424 Bytes

Versions: 4

Compression:

Stored size: 424 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require 'gherkin/tools/pretty_listener'


module Gherkin
  module Tools
    describe Colors do
      include Colors

      it "should colour stuff red" do
        failed("hello").should == "\e[31mhello\e[0m"
      end

      it "should be possible to specify no colouring" do
        failed("hello", true).should == "hello"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gherkin-1.0.3-i386-mswin32 spec/gherkin/tools/colors_spec.rb
gherkin-1.0.3-i386-mingw32 spec/gherkin/tools/colors_spec.rb
gherkin-1.0.3-java spec/gherkin/tools/colors_spec.rb
gherkin-1.0.3 spec/gherkin/tools/colors_spec.rb