Revision
775
Author
eloy.de.enige@gmail.com
Date
2008-12-30 08:27:43 -0800 (Tue, 30 Dec 2008)

Log Message

Added failing test case about including module into class Module to known_bugs.rb

Modified Paths

Diff

Modified: MacRuby/trunk/test-macruby/known_bugs.rb (774 => 775)


--- MacRuby/trunk/test-macruby/known_bugs.rb	2008-12-30 16:10:10 UTC (rev 774)
+++ MacRuby/trunk/test-macruby/known_bugs.rb	2008-12-30 16:27:43 UTC (rev 775)
@@ -77,4 +77,18 @@
       assert Class.new.respond_to?(:a_class_instance_method)
     end
   end
+  
+  class TestIncludingModuleInModule < Test::Unit::TestCase
+    module ModuleInstanceMethod
+      def a_module_instance_method; end
+    end
+    
+    class ::Module
+      include ModuleInstanceMethod
+    end
+    
+    def test_class_should_respond_to_methods_included_in_Class
+      assert Module.new.respond_to?(:a_module_instance_method)
+    end
+  end
 end
\ No newline at end of file