Skip to content

Commit

Permalink
Uses M::Unit::after_tests instead of M::Unit#status to trigger finish…
Browse files Browse the repository at this point in the history
… method. Fixes #3
  • Loading branch information
bhenderson committed Apr 30, 2012
1 parent f38f833 commit e4d9850
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/minitest/ci.rb
Expand Up @@ -97,14 +97,13 @@ def type e


class CiUnit < Unit class CiUnit < Unit


def record suite, method, assertions, time, error after_tests do
MiniTest::Ci.push suite, method, assertions, time, error MiniTest::Ci.finish self.output
super
end end


def status io = self.output def record suite, method, assertions, time, error
MiniTest::Ci.push suite, method, assertions, time, error
super super
MiniTest::Ci.finish io
end end


end end
Expand Down

0 comments on commit e4d9850

Please sign in to comment.