This method is deprecated or moved on the latest stable version.
The last existing version (v1_8_7_330) is shown here.
suite()
public
Rolls up all of the test* methods in the fixture into one suite, creating a
new instance of the
fixture for each method.
# File lib/test/unit/testcase.rb, line 52
def self.suite
method_names = public_instance_methods(true)
tests = method_names.delete_if {|method_name| method_name !~ /^test./}
suite = TestSuite.new(name)
tests.sort.each do
|test|
catch(:invalid_test) do
suite << new(test)
end
end
if (suite.empty?)
catch(:invalid_test) do
suite << new("default_test")
end
end
return suite
end