Sha256: 89c888ba3e8b873f63d28e73a5813dd75c34a2d8e5fcd0b0cf27fb1115bcab3d

Contents?: true

Size: 500 Bytes

Versions: 5

Compression:

Stored size: 500 Bytes

Contents

module XCPretty

  class RSpec < Formatter

    FAIL = "F"
    PASS = "."
    PENDING = "P"
    MEASURING = 'T'

    def optional_newline
      ''
    end

    def format_passing_test(suite, test_case, time)
      green(PASS)
    end

    def format_failing_test(test_suite, test_case, reason, file)
      red(FAIL)
    end

    def format_pending_test(suite, test_case)
      yellow(PENDING)
    end

    def format_measuring_test(suite, test_case, time)
      yellow(MEASURING)
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xcpretty-0.1.12 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.11 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.10 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.9 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.8 lib/xcpretty/formatters/rspec.rb