Class: Mocha::Integration::TestUnit::AssertionCounter

Inherits:
Object
  • Object
show all
Defined in:
lib/mocha/integration/test_unit/assertion_counter.rb

Instance Method Summary collapse

Constructor Details

#initialize(test_result) ⇒ AssertionCounter

Returns a new instance of AssertionCounter.



9
10
11
# File 'lib/mocha/integration/test_unit/assertion_counter.rb', line 9

def initialize(test_result)
  @test_result = test_result
end

Instance Method Details

#incrementObject



13
14
15
# File 'lib/mocha/integration/test_unit/assertion_counter.rb', line 13

def increment
  @test_result.add_assertion
end