Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… method. Fixes #3
  • Loading branch information...
commit e4d98509520dd47def200e93c0c2a1143edb175a 1 parent f38f833
bhenderson authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/minitest/ci.rb
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.