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

ruby-changes:32473

From: nobu <ko1@a...>
Date: Fri, 10 Jan 2014 17:40:43 +0900 (JST)
Subject: [ruby-changes:32473] nobu:r44552 (trunk): test_super.rb: remove unneeded code

nobu	2014-01-10 17:40:37 +0900 (Fri, 10 Jan 2014)

  New Revision: 44552

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

  Log:
    test_super.rb: remove unneeded code
    
    * test/ruby/test_super.rb (test_missing_super_in_module_unbound_method):
      binding target does not need extending.

  Modified files:
    trunk/test/ruby/test_super.rb
Index: test/ruby/test_super.rb
===================================================================
--- test/ruby/test_super.rb	(revision 44551)
+++ test/ruby/test_super.rb	(revision 44552)
@@ -448,7 +448,7 @@ class TestSuper < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_super.rb#L448
       def foo; super end
     end
 
-    m = a.instance_method(:foo).bind(Object.new.extend(a))
+    m = a.instance_method(:foo).bind(Object.new)
     assert_raise(NoMethodError, bug9377) do
       m.call
     end

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

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