Revision
778
Author
eloy.de.enige@gmail.com
Date
2009-01-06 07:54:53 -0800 (Tue, 06 Jan 2009)

Log Message

Added failing test case about calling super from respond_to? to known_bugs.rb

Modified Paths

Diff

Modified: MacRuby/trunk/test-macruby/known_bugs.rb (777 => 778)


--- MacRuby/trunk/test-macruby/known_bugs.rb	2009-01-06 14:59:53 UTC (rev 777)
+++ MacRuby/trunk/test-macruby/known_bugs.rb	2009-01-06 15:54:53 UTC (rev 778)
@@ -106,4 +106,18 @@
       assert_raise(NameError) { NamespacedClass }
     end
   end
+  
+  class TestRespondTo < Test::Unit::TestCase
+    class RespondTo
+      def respond_to?(method, hidden = false)
+        super
+      end
+    end
+    
+    def test_super_implementation
+      assert_nothing_raised(SystemStackError) do
+        RespondTo.new.respond_to?(:object_id)
+      end
+    end
+  end
 end
\ No newline at end of file