[前][次][番号順一覧][スレッド一覧]

ruby-changes:36807

From: usa <ko1@a...>
Date: Fri, 19 Dec 2014 11:52:31 +0900 (JST)
Subject: [ruby-changes:36807] usa:r48888 (trunk): * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_version): should support

usa	2014-12-19 11:52:17 +0900 (Fri, 19 Dec 2014)

  New Revision: 48888

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48888

  Log:
    * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_version): should support
      rc :-P

  Modified files:
    trunk/test/ruby/test_rubyoptions.rb
Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb	(revision 48887)
+++ test/ruby/test_rubyoptions.rb	(revision 48888)
@@ -139,7 +139,7 @@ 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).*? \[#{RUBY_PLATFORM}\]$/, r.join)
+      assert_match(/^ruby #{RUBY_VERSION}(?:[p ]|dev|rc).*? \[#{RUBY_PLATFORM}\]$/, r.join)
       assert_equal RUBY_DESCRIPTION, r.join.chomp
       assert_equal([], e)
     end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]