Skip to content

Commit

Permalink
found this minitest patch in my stash
Browse files Browse the repository at this point in the history
  • Loading branch information
alexch committed Nov 21, 2014
1 parent b20a081 commit 9a05931
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/wrong/adapters/minitest.rb
Expand Up @@ -9,6 +9,11 @@ def failure_class
MiniTest::Assertion
end

if MiniTest::VERSION >= "5.0.6"
alias_method :_assertions, :assertions
alias_method :"_assertions=", :"assertions="
end

def aver(valence, explanation = nil, depth = 0)
self._assertions += 1 # increment minitest's assert count
super(valence, explanation, depth + 1) # apparently this passes along the default block
Expand Down

0 comments on commit 9a05931

Please sign in to comment.