Sha256: 68fd198f68dfa5d7bd7f73d6cdb82536bd02ef032274304bb75ca9a72bb06f51

Contents?: true

Size: 692 Bytes

Versions: 98

Compression:

Stored size: 692 Bytes

Contents

require 'spec_helper'
require 'gherkin/formatter/ansi_escapes'

module Gherkin
  module Formatter
    describe AnsiEscapes do
      describe "instance methods" do
        include AnsiEscapes

        it "failed should be red" do
          failed.should == "\e[31m"
        end

        it "failed_arg should be red bold" do
          failed_arg.should == "\e[31m\e[1m"
        end
      end

      describe "class methods" do
        subject { AnsiEscapes }

        it "failed should be red" do
          subject.failed.should == "\e[31m"
        end

        it "failed_arg should be red bold" do
          subject.failed_arg.should == "\e[31m\e[1m"
        end
      end
    end
  end
end

Version data entries

98 entries across 93 versions & 9 rubygems

Version Path
gherkin-2.9.2-java spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.9.1 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.9.1-x86-mswin32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.9.1-x86-mingw32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.9.1-java spec/gherkin/formatter/ansi_escapes_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/gherkin-2.9.0/spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.9.0 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.9.0-x86-mswin32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.9.0-x86-mingw32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.9.0-java spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.8.0 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.8.0-x86-mswin32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.8.0-x86-mingw32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.8.0-java spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.7.7 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.7.7-x86-mswin32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.7.7-x86-mingw32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.7.7-java spec/gherkin/formatter/ansi_escapes_spec.rb