Callback for the MSpec :example event. Increments the tally of examples.
# File lib/mspec/runner/actions/tally.rb, line 109 def example(state, block) @counter.examples! end
Callback for the MSpec :exception event. Increments the tally of errors and failures.
# File lib/mspec/runner/actions/tally.rb, line 103 def exception(exception) exception.failure? ? @counter.failures! : @counter.errors! end
Callback for the MSpec :expectation event. Increments the tally of expectations (e.g. should, should_receive, etc.).
# File lib/mspec/runner/actions/tally.rb, line 97 def expectation(state) @counter.expectations! end
# File lib/mspec/runner/actions/tally.rb, line 113 def format @counter.format end
# File lib/mspec/runner/actions/tally.rb, line 91 def load @counter.files! end
Generated with the Darkfish Rdoc Generator 2.