[macruby-changes] [2431] MacRuby/trunk/test_vm/dispatch.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sat Aug 29 13:12:44 PDT 2009
Revision: 2431
http://trac.macosforge.org/projects/ruby/changeset/2431
Author: eloy.de.enige at gmail.com
Date: 2009-08-29 13:12:41 -0700 (Sat, 29 Aug 2009)
Log Message:
-----------
Added failing test_vm test on method_missing with a block.
Modified Paths:
--------------
MacRuby/trunk/test_vm/dispatch.rb
Modified: MacRuby/trunk/test_vm/dispatch.rb
===================================================================
--- MacRuby/trunk/test_vm/dispatch.rb 2009-08-29 19:54:54 UTC (rev 2430)
+++ MacRuby/trunk/test_vm/dispatch.rb 2009-08-29 20:12:41 UTC (rev 2431)
@@ -317,6 +317,15 @@
}
assert ':ok', %{
+ class X
+ def method_missing(x, *args, &block)
+ p :ok if x == :foo and block.call == 42
+ 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/20090829/bdc327de/attachment.html>
More information about the macruby-changes
mailing list