Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
thulio committed Jul 30, 2014
1 parent 41aeedd commit faa46b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/flexmock/test_unit_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ def teardown
class TestUnitFrameworkAdapter
include Test::Unit::Assertions

attr_accessor :assertions

def initialize
self.assertions = 0
end

def make_assertion(msg, &block)
unless yield
msg = msg.call if msg.is_a?(Proc)
Expand Down

0 comments on commit faa46b8

Please sign in to comment.