summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-03 04:04:26 +0000
committerntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-03 04:04:26 +0000
commitee5fb5f5b6428a60282f5a7ec03447ee0c25f98a (patch)
tree7c6b5615a066416daa97dcff825824d53d28eb40 /test
parent1ecd8732e82a4450cdd1d547957632c9ff284ca9 (diff)
downloadruby-ee5fb5f5b6428a60282f5a7ec03447ee0c25f98a.tar.gz
ruby-ee5fb5f5b6428a60282f5a7ec03447ee0c25f98a.tar.xz
ruby-ee5fb5f5b6428a60282f5a7ec03447ee0c25f98a.zip
* lib/test/unit.rb: refactored to use optparse.
* lib/test/unit.rb: added support for selecting the output level from the command-line. * lib/test/unit.rb: added a command-line switch to stop processing the command-line, allowing arguments to be passed to tests. * lib/test/unit.rb: changed the method for specifying a runner or a filter from the command-line. * lib/test/unit/collector/objectspace.rb: fixed a bug causing all tests to be excluded when the filter was set to an empty array. * test/testunit/collector/test_objectspace.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/testunit/collector/test_objectspace.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/testunit/collector/test_objectspace.rb b/test/testunit/collector/test_objectspace.rb
index 9e102536a..37de5a439 100644
--- a/test/testunit/collector/test_objectspace.rb
+++ b/test/testunit/collector/test_objectspace.rb
@@ -2,6 +2,7 @@
# Copyright:: Copyright (c) 2000-2003 Nathaniel Talbott. All rights reserved.
# License:: Ruby license.
+require 'test/unit'
require 'test/unit/collector/objectspace'
module Test
@@ -38,6 +39,10 @@ module Test
expected << @tc1.new('test_1')
expected << @tc1.new('test_2')
assert_equal(expected, ObjectSpace.new(@object_space).collect("name"))
+
+ c = ObjectSpace.new(@object_space)
+ c.filter = []
+ assert_equal(expected, c.collect("name"))
end
def test_filtered_collection