diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-16 02:19:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-16 02:19:44 +0000 |
commit | 6116dd832cdd42fb8631bd90db3657fc9c1bb7ef (patch) | |
tree | dcb4b175562d84d462c366c652b245ba2018cc76 | |
parent | 8b38f8c03e28f12c4c92a47a903558b55f350c9d (diff) | |
download | ruby-6116dd832cdd42fb8631bd90db3657fc9c1bb7ef.tar.gz |
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::options): use
Regexp conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/test/unit/autorunner.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Tue Nov 16 11:19:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::options): use + Regexp conversion. + Tue Nov 16 01:41:31 2004 Yukihiro Matsumoto <matz@ruby-lang.org> * array.c (rb_ary_update): pedantic check to detect diff --git a/lib/test/unit/autorunner.rb b/lib/test/unit/autorunner.rb index 4eee7f654b..b120adec0b 100644 --- a/lib/test/unit/autorunner.rb +++ b/lib/test/unit/autorunner.rb @@ -108,9 +108,9 @@ module Test @to_run.concat(a) end - o.on('-p', '--pattern=PATTERN', String, + o.on('-p', '--pattern=PATTERN', Regexp, "Match files to collect against PATTERN.") do |e| - @pattern = Regexp.new(e.sub(%r{\A/(.*)/\Z}m, '\\1')) + @pattern = e end end |