[macruby-changes] [3298] MacRuby/trunk/test_vm/module.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 19 10:25:19 PST 2010


Revision: 3298
          http://trac.macosforge.org/projects/ruby/changeset/3298
Author:   eloy.de.enige at gmail.com
Date:     2010-01-19 10:25:17 -0800 (Tue, 19 Jan 2010)
Log Message:
-----------
Add test_vm test for including a module into class Class.

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

Modified: MacRuby/trunk/test_vm/module.rb
===================================================================
--- MacRuby/trunk/test_vm/module.rb	2010-01-19 04:36:38 UTC (rev 3297)
+++ MacRuby/trunk/test_vm/module.rb	2010-01-19 18:25:17 UTC (rev 3298)
@@ -109,3 +109,14 @@
   class X; include M; end
   X.new
 }
+
+assert ':ok', %{
+  module M
+    def foo
+      p :ok
+    end
+  end
+  class Class; include M; end
+  class X; end
+  X.foo
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100119/772ddf8b/attachment.html>


More information about the macruby-changes mailing list