Class: Riot::SilentReporter
- Defined in:
- lib/riot/reporter/silent.rb
Overview
Basically, the Null Object pattern; nothing is output from this reporter.
Instance Attribute Summary
Attributes inherited from Reporter
#current_context, #errors, #failures, #passes
Instance Method Summary collapse
-
#error(description, e) ⇒ Object
Called if the assertion had an unexpected error.
-
#fail(description, message, line, file) ⇒ Object
Called if the assertion failed.
-
#pass(description, message) ⇒ Object
Called if the assertion passed.
-
#results(time_taken) ⇒ Object
Called after all contexts have finished.
Methods inherited from Reporter
#describe_context, #initialize, #new, #report, #success?, #summarize
Constructor Details
This class inherits a constructor from Riot::Reporter
Instance Method Details
#error(description, e) ⇒ Object
Called if the assertion had an unexpected error.
12 |
# File 'lib/riot/reporter/silent.rb', line 12 def error(description, e); end |
#fail(description, message, line, file) ⇒ Object
Called if the assertion failed.
9 |
# File 'lib/riot/reporter/silent.rb', line 9 def fail(description, , line, file); end |
#pass(description, message) ⇒ Object
Called if the assertion passed.
6 |
# File 'lib/riot/reporter/silent.rb', line 6 def pass(description, ); end |
#results(time_taken) ⇒ Object
Called after all contexts have finished. This is where the final results can be output.
15 |
# File 'lib/riot/reporter/silent.rb', line 15 def results(time_taken); end |