Sha256: 45d690d123c16a3d5728ed27fbb76dcc4940852b9b977e6e4e43484f7ad0d88b

Contents?: true

Size: 392 Bytes

Versions: 89

Compression:

Stored size: 392 Bytes

Contents

require 'spec_helper'
require 'gherkin/formatter/colors'

module Gherkin
  module Formatter
    describe Colors do
      include Gherkin::Formatter::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

89 entries across 89 versions & 1 rubygems

Version Path
gherkin-2.1.2-i386-mswin32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.2-i386-mingw32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.2-universal-dotnet spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.2-java spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.1 spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.1-i386-mswin32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.1-i386-mingw32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.1-universal-dotnet spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.1-java spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.0-i386-mswin32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.0-i386-mingw32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.0 spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.0-universal-dotnet spec/gherkin/formatter/colors_spec.rb
gherkin-2.1.0-java spec/gherkin/formatter/colors_spec.rb
gherkin-2.0.2 spec/gherkin/formatter/colors_spec.rb
gherkin-2.0.2-i386-mswin32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.0.2-i386-mingw32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.0.2-universal-dotnet spec/gherkin/formatter/colors_spec.rb
gherkin-2.0.2-java spec/gherkin/formatter/colors_spec.rb
gherkin-2.0.1 spec/gherkin/formatter/colors_spec.rb