diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-23 02:41:47 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-23 02:41:47 +0000 |
commit | d53204f910ba374a8141c92a2344362e129baff5 (patch) | |
tree | 514b23c0e7a1b88d6ddfd21d68f0ba606ac4f7a4 /test/ruby/test_rubyoptions.rb | |
parent | 0d280f3d638e472aef0c388b6227f4739fd2e27d (diff) |
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2):
revert the previous.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 5f43ce2da3..c77aa1f3dd 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -1,4 +1,3 @@ -# -*- coding: us-ascii -*- require 'test/unit' require 'tmpdir' @@ -36,8 +35,11 @@ class TestRubyOptions < Test::Unit::TestCase def test_usage2 assert_in_out_err(%w(-h)) do |r, e| - longer = r[1..-1].select {|x| x.size > 80} - assert_equal([], longer) + assert_operator(r[1..-1].collect{|x| x.size}.max, :<=, 80) + assert_equal([], e) + end + assert_in_out_err(%w(--help)) do |r, e| + assert_operator(r[1..-1].collect{|x| x.size}.max, :<=, 80) assert_equal([], e) end end |