Applied Laurent's patch to testcase.rb to fix symbol method names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
068ce36454
commit
fa09f2ff02
@ -48,7 +48,7 @@ module Test
|
|||||||
# one suite, creating a new instance of the fixture for
|
# one suite, creating a new instance of the fixture for
|
||||||
# each method.
|
# each method.
|
||||||
def self.suite
|
def self.suite
|
||||||
method_names = public_instance_methods(true)
|
method_names = public_instance_methods(true).map { |m| m.to_s }
|
||||||
tests = method_names.delete_if {|method_name| method_name !~ /^test./}
|
tests = method_names.delete_if {|method_name| method_name !~ /^test./}
|
||||||
suite = TestSuite.new(name)
|
suite = TestSuite.new(name)
|
||||||
tests.sort.each do
|
tests.sort.each do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user