Methods

Class Index [+]

Quicksearch

Mocha::Integration::MiniTest::Version13

Public Class Methods

included(mod) click to toggle source
    # File lib/mocha/integration/mini_test/version_13.rb, line 10
10:         def self.included(mod)
11:           $stderr.puts "Monkey patching MiniTest v1.3" if $mocha_options['debug']
12:         end

Public Instance Methods

run(runner) click to toggle source
    # File lib/mocha/integration/mini_test/version_13.rb, line 13
13:         def run runner
14:           assertion_counter = AssertionCounter.new(self)
15:           result = '.'
16:           begin
17:             begin
18:               @passed = nil
19:               self.setup
20:               self.__send__ self.name
21:               mocha_verify(assertion_counter)
22:               @passed = true
23:             rescue Exception => e
24:               @passed = false
25:               result = runner.puke(self.class, self.name, Mocha::Integration::MiniTest.translate(e))
26:             ensure
27:               begin
28:                 self.teardown
29:               rescue Exception => e
30:                 result = runner.puke(self.class, self.name, Mocha::Integration::MiniTest.translate(e))
31:               end
32:             end
33:           ensure
34:             mocha_teardown
35:           end
36:           result
37:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.