Module: Mocha::Integration::Protest::TestCase
- Defined in:
- lib/mocha-protest-integration.rb
Instance Method Summary collapse
Instance Method Details
#run(report) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/mocha-protest-integration.rb', line 13 def run(report) assertion_counter = AssertionCounter.new(report) # mocha @report = report pending if test.nil? setup instance_eval(&test) mocha_verify(assertion_counter) # mocha teardown @report = nil ensure mocha_teardown # mocha end |