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

source_changes at macosforge.org source_changes at macosforge.org
Sat Nov 7 17:43:58 PST 2009


Revision: 2981
          http://trac.macosforge.org/projects/ruby/changeset/2981
Author:   lsansonetti at apple.com
Date:     2009-11-07 17:43:55 -0800 (Sat, 07 Nov 2009)
Log Message:
-----------
adding 2 failing tests

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

Modified: MacRuby/trunk/test_vm/module.rb
===================================================================
--- MacRuby/trunk/test_vm/module.rb	2009-11-07 21:04:24 UTC (rev 2980)
+++ MacRuby/trunk/test_vm/module.rb	2009-11-08 01:43:55 UTC (rev 2981)
@@ -55,3 +55,35 @@
     p :ok
   end
 }
+
+assert ':ok', %{
+  module Bar
+    module Baz
+      def baz
+        p :nok
+      end
+    end
+  end
+  class Foo
+    def self.baz
+      p :ok
+    end
+  end
+  Foo.extend(Bar::Baz)
+  Foo.baz
+}
+
+assert ':ok', %{
+  module Bar
+    def baz
+      p :nok
+    end
+  end
+  class Foo
+    def self.baz
+      p :ok
+    end
+  end
+  Foo.extend(Bar)
+  Foo.baz
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091107/4d071b4a/attachment.html>


More information about the macruby-changes mailing list