Class: Riot::SilentReporter

Inherits:
Reporter show all
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

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.

Parameters:

  • description (String)

    the description of the assertion

  • ] (Array<Symbol, Exception])

    result the exception from the assertion



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.

Parameters:

  • description (String)

    the description of the assertion

  • ] (Array<Symbol, String, Number, String])

    response the evaluation response from the assertion



9
# File 'lib/riot/reporter/silent.rb', line 9

def fail(description, message, line, file); end

#pass(description, message) ⇒ Object

Called if the assertion passed.

Parameters:

  • description (String)

    the description of the assertion

  • ] (Array<Symbol, String])

    result the evaluation response from the assertion



6
# File 'lib/riot/reporter/silent.rb', line 6

def pass(description, message); end

#results(time_taken) ⇒ Object

Called after all contexts have finished. This is where the final results can be output.

Parameters:

  • time_taken (Number)

    number of seconds taken to run everything



15
# File 'lib/riot/reporter/silent.rb', line 15

def results(time_taken); end