[macruby-changes] [3299] MacRuby/trunk/test_vm/module.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jan 19 10:54:51 PST 2010
Revision: 3299
http://trac.macosforge.org/projects/ruby/changeset/3299
Author: eloy.de.enige at gmail.com
Date: 2010-01-19 10:54:49 -0800 (Tue, 19 Jan 2010)
Log Message:
-----------
Add test_vm test for including a module into class Module.
Modified Paths:
--------------
MacRuby/trunk/test_vm/module.rb
Modified: MacRuby/trunk/test_vm/module.rb
===================================================================
--- MacRuby/trunk/test_vm/module.rb 2010-01-19 18:25:17 UTC (rev 3298)
+++ MacRuby/trunk/test_vm/module.rb 2010-01-19 18:54:49 UTC (rev 3299)
@@ -120,3 +120,14 @@
class X; end
X.foo
}
+
+assert ':ok', %{
+ module M
+ def foo
+ p :ok
+ end
+ end
+ class Module; include M; end
+ module X; end
+ X.foo
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100119/b0f0eb26/attachment.html>
More information about the macruby-changes
mailing list