ruby-changes:37561
From: nobu <ko1@a...>
Date: Thu, 19 Feb 2015 10:54:46 +0900 (JST)
Subject: [ruby-changes:37561] nobu:r49642 (trunk): test_rubyoptions.rb: fix for r46355 and r49638
nobu 2015-02-19 10:54:30 +0900 (Thu, 19 Feb 2015) New Revision: 49642 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49642 Log: test_rubyoptions.rb: fix for r46355 and r49638 * test/ruby/test_rubyoptions.rb (test_version, test_verbose): extra lines (currently last_commit and malloc_conf) may be shown. Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 49641) +++ test/ruby/test_rubyoptions.rb (revision 49642) @@ -85,8 +85,8 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L85 def test_verbose assert_in_out_err(["-vve", ""]) do |r, e| - assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev|rc).*? \[#{RUBY_PLATFORM}\]$/, r.join) - assert_equal RUBY_DESCRIPTION, r.join.chomp + assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev|rc).*? \[#{RUBY_PLATFORM}\]$/, r[0]) + assert_equal(RUBY_DESCRIPTION, r[0]) assert_equal([], e) end @@ -139,8 +139,8 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L139 def test_version assert_in_out_err(%w(--version)) do |r, e| - assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev|rc).*? \[#{RUBY_PLATFORM}\]$/, r.join) - assert_equal RUBY_DESCRIPTION, r.join.chomp + assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev|rc).*? \[#{RUBY_PLATFORM}\]$/, r[0]) + assert_equal(RUBY_DESCRIPTION, r[0]) assert_equal([], e) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/