[macruby-changes] [2533] MacRuby/trunk/test_vm/constant.rb

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 9 23:19:08 PDT 2009


Revision: 2533
          http://trac.macosforge.org/projects/ruby/changeset/2533
Author:   lsansonetti at apple.com
Date:     2009-09-09 23:19:07 -0700 (Wed, 09 Sep 2009)
Log Message:
-----------
adding failing test

Modified Paths:
--------------
    MacRuby/trunk/test_vm/constant.rb

Modified: MacRuby/trunk/test_vm/constant.rb
===================================================================
--- MacRuby/trunk/test_vm/constant.rb	2009-09-10 06:15:25 UTC (rev 2532)
+++ MacRuby/trunk/test_vm/constant.rb	2009-09-10 06:19:07 UTC (rev 2533)
@@ -117,3 +117,13 @@
     end
   end
 }
+
+assert '42', %{
+  class Foo
+    FOO=42
+    def hey
+      Object.new.instance_eval { p FOO }
+    end
+  end
+  Foo.new.hey
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090909/1b1f7249/attachment.html>


More information about the macruby-changes mailing list