[macruby-changes] [2444] MacRuby/trunk/test_vm/dispatch.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 31 13:39:41 PDT 2009


Revision: 2444
          http://trac.macosforge.org/projects/ruby/changeset/2444
Author:   eloy.de.enige at gmail.com
Date:     2009-08-31 13:39:41 -0700 (Mon, 31 Aug 2009)
Log Message:
-----------
Added failing test_vm test about method_missing with a block for a private method.

Modified Paths:
--------------
    MacRuby/trunk/test_vm/dispatch.rb

Modified: MacRuby/trunk/test_vm/dispatch.rb
===================================================================
--- MacRuby/trunk/test_vm/dispatch.rb	2009-08-31 09:36:33 UTC (rev 2443)
+++ MacRuby/trunk/test_vm/dispatch.rb	2009-08-31 20:39:41 UTC (rev 2444)
@@ -326,6 +326,18 @@
 }
 
 assert ':ok', %{
+  class X
+    def method_missing(x, *args, &block)
+      p :ok if x == :foo and block.call == 42
+    end
+    
+    private
+    def foo; end
+  end
+  X.new.foo { 42 }
+}
+
+assert ':ok', %{
   module M
     def initialize(*args)
       super
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090831/19e2323a/attachment.html>


More information about the macruby-changes mailing list