Class: Mocha::Integration::TestUnit::AssertionCounter
- Defined in:
- lib/mocha/integration/test_unit/assertion_counter.rb
Instance Method Summary collapse
- #increment ⇒ Object
-
#initialize(test_result) ⇒ AssertionCounter
constructor
A new instance of AssertionCounter.
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
#increment ⇒ Object
13 14 15 |
# File 'lib/mocha/integration/test_unit/assertion_counter.rb', line 13 def increment @test_result.add_assertion end |