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

ruby-changes:32336

From: naruse <ko1@a...>
Date: Wed, 25 Dec 2013 20:31:07 +0900 (JST)
Subject: [ruby-changes:32336] naruse:r44415 (ruby_2_1): merge revision(s) 44381: [Backport #9296]

naruse	2013-12-25 20:31:01 +0900 (Wed, 25 Dec 2013)

  New Revision: 44415

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

  Log:
    merge revision(s) 44381: [Backport #9296]
    
    test_method.rb: fix test
    
    * test/ruby/test_method.rb (test_define_method_in_private_scope):
      remove extra *, to get the argument itself.

  Modified directories:
    branches/ruby_2_1/
  Modified files:
    branches/ruby_2_1/test/ruby/test_method.rb
Index: ruby_2_1/test/ruby/test_method.rb
===================================================================
--- ruby_2_1/test/ruby/test_method.rb	(revision 44414)
+++ ruby_2_1/test/ruby/test_method.rb	(revision 44415)
@@ -344,7 +344,7 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/ruby_2_1/test/ruby/test_method.rb#L344
     class << c
       public :define_method
     end
-    TOPLEVEL_BINDING.eval("proc{|c|c.define_method(:x) {|*x|throw x}}").call(c)
+    TOPLEVEL_BINDING.eval("proc{|c|c.define_method(:x) {|x|throw x}}").call(c)
     o = c.new
     assert_throw(bug9005) {o.x(bug9005)}
   end

Property changes on: ruby_2_1
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r44381


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

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