Sha256: 5bd9b0e794e08707cbfdabd8c88bcea3cbcaca046074dc6b0df4d31eb5fad0fb

Contents?: true

Size: 521 Bytes

Versions: 9

Compression:

Stored size: 521 Bytes

Contents

require "teaspoon/formatter/base"
require "teaspoon/formatter/modules/report_module"

module Teaspoon
  module Formatter
    class Dot < Base
      include ReportModule

      protected

      def log_spec(result)
        return log_str(".", GREEN) if result.passing?
        return log_str("*", YELLOW) if result.pending?
        log_str("F", RED)
      end

      def log_console(message)
        log_str(message)
      end

      def log_result(result)
        log_line("\n")
        super
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
teaspoon-1.1.5 lib/teaspoon/formatter/dot.rb
teaspoon-1.1.4 lib/teaspoon/formatter/dot.rb
teaspoon-1.1.3 lib/teaspoon/formatter/dot.rb
teaspoon-1.1.2 lib/teaspoon/formatter/dot.rb
teaspoon-1.1.1 lib/teaspoon/formatter/dot.rb
teaspoon-1.1.0 lib/teaspoon/formatter/dot.rb
teaspoon-1.0.2 lib/teaspoon/formatter/dot.rb
teaspoon-1.0.1 lib/teaspoon/formatter/dot.rb
teaspoon-1.0.0 lib/teaspoon/formatter/dot.rb