Sha256: 825792be2cd1419e7fe1f9e2f86da61fb1e2a7f16be4f92d94e52c7f10370a58

Contents?: true

Size: 635 Bytes

Versions: 2

Compression:

Stored size: 635 Bytes

Contents

module Micronaut
  module Formatters
    
    class ProgressFormatter < BaseTextFormatter
      
      def example_failed(example, exception)
        super
        output.print colorise('F', exception)
        output.flush
      end

      def example_passed(example)
        super
        output.print green('.')
        output.flush
      end

      def example_pending(example, message)
        super
        output.print yellow('*')
        output.flush
      end

      def start_dump
        output.puts
        output.flush
      end

      def method_missing(sym, *args)
        # ignore
      end
      
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spicycode-micronaut-0.1.4.2 lib/micronaut/formatters/progress_formatter.rb
spicycode-micronaut-0.1.4.3 lib/micronaut/formatters/progress_formatter.rb