[macruby-changes] [774] MacRuby/trunk/test-macruby/known_bugs.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 30 08:10:11 PST 2008


Revision: 774
          http://trac.macosforge.org/projects/ruby/changeset/774
Author:   eloy.de.enige at gmail.com
Date:     2008-12-30 08:10:10 -0800 (Tue, 30 Dec 2008)
Log Message:
-----------
Added failing test case about including module into class Class to known_bugs.rb

Modified Paths:
--------------
    MacRuby/trunk/test-macruby/known_bugs.rb

Modified: MacRuby/trunk/test-macruby/known_bugs.rb
===================================================================
--- MacRuby/trunk/test-macruby/known_bugs.rb	2008-12-29 18:45:08 UTC (rev 773)
+++ MacRuby/trunk/test-macruby/known_bugs.rb	2008-12-30 16:10:10 UTC (rev 774)
@@ -63,4 +63,18 @@
       assert_nothing_raised(RangeError) { "%d" % 68727360256 }
     end
   end
+  
+  class TestIncludingModuleInClass < Test::Unit::TestCase
+    module ClassInstanceMethod
+      def a_class_instance_method; end
+    end
+    
+    class ::Class
+      include ClassInstanceMethod
+    end
+    
+    def test_class_should_respond_to_methods_included_in_Class
+      assert Class.new.respond_to?(:a_class_instance_method)
+    end
+  end
 end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081230/cfd358c3/attachment.html>


More information about the macruby-changes mailing list