summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_rubyoptions.rb8
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