Class: TestMessage
- Inherits:
-
TestResult
- Object
- TestResult
- TestMessage
- Defined in:
- lib/test_message.rb
Overview
Prints system messages, generally ran by the CLI runner
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(title, message) ⇒ TestMessage
constructor
A new instance of TestMessage.
- #report(spacer_count = 0) ⇒ Object
Methods included from Result
#failures, #neutrals, #successes
Constructor Details
#initialize(title, message) ⇒ TestMessage
Returns a new instance of TestMessage.
10 11 12 13 |
# File 'lib/test_message.rb', line 10 def initialize(title, ) super(title) = end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/test_message.rb', line 8 def end |
Instance Method Details
#report(spacer_count = 0) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/test_message.rb', line 15 def report(spacer_count = 0) super if .nil? Printer.neutral(@spacer + @title) else Printer.neutral("#{@spacer}#{@title} #{@message}") end end |