summaryrefslogtreecommitdiffstats
path: root/lib/test/unit/collector
diff options
context:
space:
mode:
authorntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-02 02:20:42 +0000
committerntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-02 02:20:42 +0000
commitdab02799d72bdcce27dfb07869755b3b6519c3ed (patch)
treec7f409e15a07e445cdb5ee22335735eb1e75c229 /lib/test/unit/collector
parentd8b6d8b933720565cf111d5a72319489ed2effd6 (diff)
downloadruby-dab02799d72bdcce27dfb07869755b3b6519c3ed.tar.gz
ruby-dab02799d72bdcce27dfb07869755b3b6519c3ed.tar.xz
ruby-dab02799d72bdcce27dfb07869755b3b6519c3ed.zip
* lib/test/unit/assertions.rb: should not capture an
AssertionFailedError unless explicitly requested. * test/testunit/test_assertions.rb: ditto. * test/testunit/collector/test_objectspace.rb: fixed a test failure caused by methods being returned in different orders on different platforms by moving test sorting from TestSuite into the locations where suites are constructed. [ruby-talk:83156] * lib/test/unit/testcase.rb: ditto. * lib/test/unit/testsuite.rb: ditto. * lib/test/unit/collector/objectspace.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit/collector')
-rw-r--r--lib/test/unit/collector/objectspace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit/collector/objectspace.rb b/lib/test/unit/collector/objectspace.rb
index 32b633268..162f1ec4f 100644
--- a/lib/test/unit/collector/objectspace.rb
+++ b/lib/test/unit/collector/objectspace.rb
@@ -18,7 +18,7 @@ module Test
@source.each_object(Class) do |klass|
tests.concat(klass.suite.tests) if(Test::Unit::TestCase > klass)
end
- tests.each{|test| suite << test if(include(test))}
+ tests.sort_by{|t| t.name}.each{|test| suite << test if(include(test))}
suite
end