diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-14 13:48:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-14 13:48:18 +0000 |
commit | 716a99389c36e7e15c932f8ce4a0229b9756b185 (patch) | |
tree | 5b48ad1e4b154a580e866d5a821ef8bd10adb22f /lib/test | |
parent | 80020d092e6416eb19046e905ebfdbc9b89c35bc (diff) | |
download | ruby-716a99389c36e7e15c932f8ce4a0229b9756b185.tar.gz |
* lib/test/unit.rb (Test::Unit::Options#setup_options): set possible
values for completion. no conversion is needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test')
-rw-r--r-- | lib/test/unit.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 9e3a23ea43..1f1bb090bc 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -70,7 +70,7 @@ module Test end opts.on '-s', '--seed SEED', Integer, "Sets random seed" do |m| - options[:seed] = m.to_i + options[:seed] = m end opts.on '-v', '--verbose', "Verbose. Show progress processing files." do @@ -82,8 +82,9 @@ module Test options[:filter] = a end - opts.on '--jobs-status [TYPE]', "Show status of jobs every file; Disabled when --jobs isn't specified." do |type| - options[:job_status] = (type && type.to_sym) || :normal + opts.on '--jobs-status [TYPE]', [:normal, :replace], + "Show status of jobs every file; Disabled when --jobs isn't specified." do |type| + options[:job_status] = type || :normal end opts.on '-j N', '--jobs N', "Allow run tests with N jobs at once" do |a| |