Class: Mocha::Integration::Protest::AssertionCounter
- Inherits:
-
Object
- Object
- Mocha::Integration::Protest::AssertionCounter
- Defined in:
- lib/mocha-protest-integration.rb
Instance Method Summary collapse
- #increment ⇒ Object
-
#initialize(report) ⇒ AssertionCounter
constructor
A new instance of AssertionCounter.
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
#increment ⇒ Object
8 9 10 |
# File 'lib/mocha-protest-integration.rb', line 8 def increment @report.add_assertion end |