summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-19 02:01:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-19 02:01:59 +0000
commitc9a46c48cf21793e29696a5303a97d321d409143 (patch)
tree9545bad3ed3db7ae2f83ad65cac6f49e4bc57fbc /test
parent6beac053338e2986dbff5719991f1ece40d63d2e (diff)
downloadruby-c9a46c48cf21793e29696a5303a97d321d409143.tar.gz
ruby-c9a46c48cf21793e29696a5303a97d321d409143.tar.xz
ruby-c9a46c48cf21793e29696a5303a97d321d409143.zip
* lib/test/unit.rb: use standalone runner for -e.
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): accept multiple -p and -x options. * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#recursive_collect): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/testunit/collector/test_dir.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testunit/collector/test_dir.rb b/test/testunit/collector/test_dir.rb
index e9b42d796..e7ae41426 100644
--- a/test/testunit/collector/test_dir.rb
+++ b/test/testunit/collector/test_dir.rb
@@ -164,11 +164,11 @@ module Test
def test_dir
inner_dir = nil
- dir = FileSystem::Directory.new('/', nil) do
+ dirs = FileSystem::Directory.new('/', nil) do
file 'a', nil
inner_dir = dir 'b'
end
- assert_equal(inner_dir, dir['b'])
+ assert_equal(inner_dir, dirs['b'])
end
def test_fs
@@ -365,7 +365,7 @@ module Test
def test_nil_pattern
expected = TestSuite.new('d2')
expected << @t5.suite
- @c.pattern = nil
+ @c.pattern.clear
assert_equal(expected, @c.collect('d2'))
end
@@ -380,7 +380,7 @@ module Test
expected = TestSuite.new('[d1, d2]')
expected << (TestSuite.new('d1') << @t3.suite)
expected << (TestSuite.new('d2') << @t5.suite)
- @c.pattern = /^test_/
+ @c.pattern.replace([/\btest_/])
assert_equal(expected, @c.collect('d1', 'd2'))
end
end