Sha256: 6881eb2ef397b286cbb2a9d7eb3af2c063b2ca1ec2df010da668fc0337fa7cd9

Contents?: true

Size: 393 Bytes

Versions: 10

Compression:

Stored size: 393 Bytes

Contents

module XCPretty

  class RSpec < Formatter

    FAIL = "F"
    PASS = "."
    PENDING = "P"

    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

  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
learn-xcpretty-0.1.12 lib/xcpretty/formatters/rspec.rb
learn-xcpretty-0.1.11 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.7 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.6 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.5 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.4 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.3 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.2 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.1 lib/xcpretty/formatters/rspec.rb
xcpretty-0.1.0 lib/xcpretty/formatters/rspec.rb