Sha256: 712d152c88532f02f80ce1ebf843936f0fa5208fb88b1e0deeb46195ce2181fb

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

require 'rspec/core/formatters/base_text_formatter'

module Emoji
  module RSpec
    module Formatters

      class ThumbsFormatter < ::RSpec::Core::Formatters::BaseTextFormatter
        def example_passed(example)
          super(example)
          output.print green "\u{1f44d} "
        end

        def example_failed(example)
          super(example)
          output.print red "\u{1f44e} "
        end

        def example_pending(example)
          super(example)
          output.print yellow "\u{270b} "
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emoji-rspec-0.0.1 lib/emoji/rspec/formatters/thumbs_formatter.rb