Permalink
Browse files

Uses M::Unit::after_tests instead of M::Unit#status to trigger finish…

… method. Fixes #3
  • Loading branch information...
1 parent f38f833 commit e4d98509520dd47def200e93c0c2a1143edb175a bhenderson committed Apr 30, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/minitest/ci.rb
View
@@ -97,14 +97,13 @@ def type e
class CiUnit < Unit
- def record suite, method, assertions, time, error
- MiniTest::Ci.push suite, method, assertions, time, error
- super
+ after_tests do
+ MiniTest::Ci.finish self.output
end
- def status io = self.output
+ def record suite, method, assertions, time, error
+ MiniTest::Ci.push suite, method, assertions, time, error
super
- MiniTest::Ci.finish io
end
end

0 comments on commit e4d9850

Please sign in to comment.