summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_rubyoptions.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 0291850ba8..5f43ce2da3 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -36,7 +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)
+ longer = r[1..-1].select {|x| x.size > 80}
+ assert_equal([], longer)
assert_equal([], e)
end
end