Class: Mocha::Integration::Protest::AssertionCounter

Inherits:
Object
  • Object
show all
Defined in:
lib/mocha-protest-integration.rb

Instance Method Summary collapse

Constructor Details

#initialize(report) ⇒ AssertionCounter

Returns a new instance of AssertionCounter.



5
6
7
# File 'lib/mocha-protest-integration.rb', line 5

def initialize(report)
  @report = report
end

Instance Method Details

#incrementObject



8
9
10
# File 'lib/mocha-protest-integration.rb', line 8

def increment
  @report.add_assertion
end