[macruby-changes] [777] MacRuby/trunk/test-macruby/known_bugs.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jan 6 06:59:53 PST 2009
Revision: 777
http://trac.macosforge.org/projects/ruby/changeset/777
Author: eloy.de.enige at gmail.com
Date: 2009-01-06 06:59:53 -0800 (Tue, 06 Jan 2009)
Log Message:
-----------
Added failing test case about constant lookup to known bugs.
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-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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090106/50395f55/attachment.html>
More information about the macruby-changes
mailing list