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

ruby-changes:20663

From: nobu <ko1@a...>
Date: Thu, 28 Jul 2011 01:19:04 +0900 (JST)
Subject: [ruby-changes:20663] nobu:r32711 (trunk): * test/ruby/test_symbol.rb (test_no_inadvertent_symbol_creation):

nobu	2011-07-28 01:18:54 +0900 (Thu, 28 Jul 2011)

  New Revision: 32711

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

  Log:
    * test/ruby/test_symbol.rb (test_no_inadvertent_symbol_creation):
      remove an assertion depending on default respond_to_missing?.

  Modified files:
    trunk/test/ruby/test_symbol.rb

Index: test/ruby/test_symbol.rb
===================================================================
--- test/ruby/test_symbol.rb	(revision 32710)
+++ test/ruby/test_symbol.rb	(revision 32711)
@@ -160,10 +160,15 @@
 
   def test_no_inadvertent_symbol_creation
     feature5072 = '[ruby-core:38367]'
-    c = Class.new
+    c = Class.new do
+      def self.respond_to_missing?(*)
+        super
+      end
+    end
     s = "gadzooks"
     {
-      :respond_to? => "#{s}1", :method_defined? => "#{s}2",
+      #:respond_to? => "#{s}1",
+      :method_defined? => "#{s}2",
       :public_method_defined? => "#{s}3", :private_method_defined? => "#{s}4",
       :protected_method_defined? => "#{s}5", :const_defined? => "A#{s}",
       :instance_variable_defined? => "@#{s}", :class_variable_defined? => "@@#{s}"

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

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