Skip to content
Browse files

Use public API of MiniTest for registering assertions.

As suggested by @tenderlove in [1]. This reduces the dependency on
private & potentially more changeable behaviour in MiniTest and gets us
closer to the goal of not having to monkey-patch.

[1] #87 (comment)
  • Loading branch information...
1 parent 506345f commit 3131b8d90760b64f5a2384562e3aa706c437a679 @floehopper floehopper committed Jul 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mocha/integration/mini_test/assertion_counter.rb
View
2 lib/mocha/integration/mini_test/assertion_counter.rb
@@ -11,7 +11,7 @@ def initialize(test_case)
end
def increment
- @test_case._assertions += 1
+ @test_case.assert(true)
end
end

0 comments on commit 3131b8d

Please sign in to comment.
Something went wrong with that request. Please try again.