Class: Mocha::Integration::MiniTest::AssertionCounter

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

Instance Method Summary collapse

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

#incrementObject



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

def increment
  @test_case._assertions += 1
end