summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_rubyoptions.rb8
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 01294b9..202d3fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Nov 23 11:40:13 2012 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2):
+ revert the previous.
+
Fri Nov 23 11:13:46 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2): refine
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 5f43ce2..c77aa1f 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