diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-19 02:01:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-19 02:01:59 +0000 |
commit | 97e966d04bd758d66b7264801ba197a61e3616e4 (patch) | |
tree | 5b43a46cc2bfea4db1a16175debdba14a35faeaf /test/testunit | |
parent | fda1e2a0abce1d52fd42bb1eacce13a56f2a7fd7 (diff) | |
download | ruby-97e966d04bd758d66b7264801ba197a61e3616e4.tar.gz ruby-97e966d04bd758d66b7264801ba197a61e3616e4.tar.xz ruby-97e966d04bd758d66b7264801ba197a61e3616e4.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/trunk@7597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/testunit')
-rw-r--r-- | test/testunit/collector/test_dir.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testunit/collector/test_dir.rb b/test/testunit/collector/test_dir.rb index 7ab3f45a9..3576333a0 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 @@ -370,7 +370,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 @@ -385,7 +385,7 @@ module Test expected = TestSuite.new('[d1, d2]') expected << (TestSuite.new('d1') << @t3.suite) expected << (TestSuite.new('d2') << @t5.suite) - @c.pattern = /\btest_/ + @c.pattern.replace([/\btest_/]) assert_equal(expected, @c.collect('d1', 'd2')) end end |