ruby-test-spec (0.10.0-2) 0010-disable_invalid_test_exception.patch

Summary

 lib/test/spec.rb |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

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