diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 9 |
2 files changed, 8 insertions, 6 deletions
@@ -1,3 +1,8 @@ +Sat Nov 24 19:29:18 2012 Tadayoshi Funaba <tadf@dotrb.org> + + * test/ruby/test_rubyoptions.rb (test_usage, test_usage_long): + reduced, renamed. + Sat Nov 24 13:10:14 2012 Koichi Sasada <ko1@atdot.net> * vm_trace.c (rb_tracepoint_attr_raised_exception): should not check diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 7127cc41b8..eca6823597 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -30,16 +30,13 @@ class TestRubyOptions < Test::Unit::TestCase def test_usage assert_in_out_err(%w(-h)) do |r, e| assert_operator(r.size, :<=, 24) - assert_equal([], e) - end - end - - 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_equal([], e) end + end + + def test_usage_long assert_in_out_err(%w(--help)) do |r, e| longer = r[1..-1].select {|x| x.size > 80} assert_equal([], longer) |