Modified: MacRuby/trunk/test-macruby/known_bugs.rb (776 => 777)
--- MacRuby/trunk/test-macruby/known_bugs.rb 2008-12-30 16:32:10 UTC (rev 776)
+++ MacRuby/trunk/test-macruby/known_bugs.rb 2009-01-06 14:59:53 UTC (rev 777)
@@ -91,4 +91,19 @@
assert Module.new.respond_to?(:a_module_instance_method)
end
end
+
+ class TestConstantLookup < Test::Unit::TestCase
+ module Namespace
+ NamespacedConstant = nil
+ class NamespacedClass; end
+ end
+
+ def test_should_not_find_namespaced_constants # works
+ assert_raise(NameError) { NamespacedConstant }
+ end
+
+ def test_should_not_find_namespaced_classes # fails
+ assert_raise(NameError) { NamespacedClass }
+ end
+ end
end
\ No newline at end of file