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
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/gherkin-2.12.2/spec/gherkin/formatter/ansi_escapes_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/gherkin-2.12.2/spec/gherkin/formatter/ansi_escapes_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/gherkin-2.12.2/spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.2 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.2-x86-mswin32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.2-x86-mingw32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.2-java spec/gherkin/formatter/ansi_escapes_spec.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/gherkin-2.11.1/spec/gherkin/formatter/ansi_escapes_spec.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/gherkin-2.11.1/spec/gherkin/formatter/ansi_escapes_spec.rb
candlepin-api-0.4.0 bundle/ruby/gems/gherkin-2.11.1/spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.1 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.1-x86-mswin32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.1-x86-mingw32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.1-java spec/gherkin/formatter/ansi_escapes_spec.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.0 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.0-x86-mingw32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.0-x86-mswin32 spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.12.0-java spec/gherkin/formatter/ansi_escapes_spec.rb
gherkin-2.11.8 spec/gherkin/formatter/ansi_escapes_spec.rb