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.2.8 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.8-x86-mswin32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.8-x86-mingw32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.8-universal-dotnet spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.8-java spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.7 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.7-x86-mswin32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.7-x86-mingw32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.7-universal-dotnet spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.7-java spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.6 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.6-x86-mswin32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.6-x86-mingw32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.6-universal-dotnet spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.6-java spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.5 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.5-x86-mswin32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.5-x86-mingw32 spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.5-universal-dotnet spec/gherkin/formatter/colors_spec.rb
gherkin-2.2.5-java spec/gherkin/formatter/colors_spec.rb