diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index c77aa1f3dd..5f43ce2da3 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -1,3 +1,4 @@ +# -*- coding: us-ascii -*- require 'test/unit' require 'tmpdir' @@ -35,11 +36,8 @@ class TestRubyOptions < Test::Unit::TestCase def test_usage2 assert_in_out_err(%w(-h)) do |r, e| - 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) + longer = r[1..-1].select {|x| x.size > 80} + assert_equal([], longer) assert_equal([], e) end end |