Class: Mocha::Integration::MiniTest::AssertionCounter
- Defined in:
- lib/mocha/integration/mini_test/assertion_counter.rb
Instance Method Summary collapse
- #increment ⇒ Object
-
#initialize(test_case) ⇒ AssertionCounter
constructor
A new instance of AssertionCounter.
Constructor Details
#initialize(test_case) ⇒ AssertionCounter
Returns a new instance of AssertionCounter.
9 10 11 |
# File 'lib/mocha/integration/mini_test/assertion_counter.rb', line 9 def initialize(test_case) @test_case = test_case end |
Instance Method Details
#increment ⇒ Object
13 14 15 |
# File 'lib/mocha/integration/mini_test/assertion_counter.rb', line 13 def increment @test_case._assertions += 1 end |