From d53204f910ba374a8141c92a2344362e129baff5 Mon Sep 17 00:00:00 2001 From: tadf Date: Fri, 23 Nov 2012 02:41:47 +0000 Subject: * 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 --- test/ruby/test_rubyoptions.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3