Skip to content
Browse files

Disabled tests should not cause errors under test-unit 2.4.7

This closes #2.
  • Loading branch information...
1 parent f340329 commit b93314b213460730125245e61e7caa5f01567dba @sinisterchipmunk committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/test/spec.rb
View
7 lib/test/spec.rb
@@ -358,7 +358,7 @@ def initialize(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"
+ # throw :invalid_test if name.to_s == "default_test"
end
def position
@@ -538,6 +538,7 @@ def specify(specname, &block)
class Test::Spec::Disabled < Test::Unit::Failure # :nodoc:
def initialize(name)
@name = name
+ @location = []
end
def single_character_display
@@ -551,6 +552,10 @@ def short_display
def long_display
@name + " is disabled"
end
+
+ def message
+ long_display
+ end
end
class Test::Spec::Empty < Test::Unit::Failure # :nodoc:

0 comments on commit b93314b

Please sign in to comment.
Something went wrong with that request. Please try again.