Class: XCPretty::Printer::RSpec
- Inherits:
-
Object
- Object
- XCPretty::Printer::RSpec
- Includes:
- XCPretty::Printer
- Defined in:
- lib/xcpretty/printers/rspec.rb
Constant Summary collapse
- FAIL =
"F"- PASS =
"."
Constants included from Matchers
Matchers::EXECUTED_MATCHER, Matchers::FAILING_TEST_MATCHER, Matchers::PASSING_TEST_MATCHER, Matchers::TESTS_RUN_COMPLETION_MATCHER, Matchers::TESTS_RUN_START_MATCHER, Matchers::TEST_SUITE_START_MATCHER
Constants included from ANSI
ANSI::COLORS, ANSI::EFFECT, ANSI::FORMATTED_MATCHER
Instance Attribute Summary
Attributes included from ANSI
Instance Method Summary collapse
Methods included from XCPretty::Printer
#failures_per_suite, #format_test_summary, #optional_newline, #pretty_print, #project_build_info, #store_failure, #test_summary, #update_test_state, #use_unicode=, #use_unicode?
Methods included from ANSI
#ansi_parse, #applied_effects, #colorize?, #cyan, #green, #red, #strip, #white, #yellow
Instance Method Details
#pretty_format(text) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/xcpretty/printers/rspec.rb', line 11 def pretty_format(text) case text when PASSING_TEST_MATCHER green(PASS) when FAILING_TEST_MATCHER red(FAIL) else "" end end |