Description: avoid throwing :invalid_test expection
This exception is used in the version of Test::Unit bundled with
Ruby1.8 but is not catched in the newer version packaged in
ruby-test-unit.
Author: Cédric Boutillier <cedric.boutillier@gmail.com>
Last-Update: 2011-09-20
--- a/lib/test/spec.rb
+++ b/lib/test/spec.rb
@@ -352,9 +352,9 @@
def initialize(name)
super name
- # Don't let the default_test clutter up the results and don't
- # flunk if no tests given, either.
- throw :invalid_test if name.to_s == "default_test"
+ ## Don't let the default_test clutter up the results and don't
+ ## flunk if no tests given, either.
+ #throw :invalid_test if name.to_s == "default_test"
end
def position