lib/test/unit/testcase.rb in test-unit-2.5.2 vs lib/test/unit/testcase.rb in test-unit-2.5.3

- old
+ new

@@ -104,10 +104,11 @@ class << self def inherited(sub_class) # :nodoc: require "test/unit" DESCENDANTS << sub_class + super end @@added_methods = {} def method_added(name) # :nodoc: super @@ -287,10 +288,11 @@ # description "register a normal user" # def test_register # ... # end def description(value, target=nil) - attribute(:description, value, {}, target || []) + targets = [target].compact + attribute(:description, value, {}, *targets) end # Defines a sub test case. # # This is a syntax sugar. The both of the following codes are