Class: Test::Unit::UI::Console::RedGreenTestRunner
- Inherits:
-
TestRunner
- Object
- TestRunner
- Test::Unit::UI::Console::RedGreenTestRunner
- Defined in:
- lib/shoulda/color.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#output_single(something, level = NORMAL) ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/shoulda/color.rb', line 62 def output_single(something, level=NORMAL) return unless (output?(level)) something = case something when '.' then ThoughtBot::Shoulda::Color.green('.') when 'F' then ThoughtBot::Shoulda::Color.red("F") when 'E' then ThoughtBot::Shoulda::Color.yellow("E") else something end @io.write(something) @io.flush end |