[macruby-changes] [2268] MacRuby/trunk/test_vm/attr.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sat Aug 8 17:20:22 PDT 2009
Revision: 2268
http://trac.macosforge.org/projects/ruby/changeset/2268
Author: vincent.isambart at gmail.com
Date: 2009-08-08 17:20:19 -0700 (Sat, 08 Aug 2009)
Log Message:
-----------
added a failing test based on bug report #307
http://www.macruby.org/trac/ticket/307
Modified Paths:
--------------
MacRuby/trunk/test_vm/attr.rb
Modified: MacRuby/trunk/test_vm/attr.rb
===================================================================
--- MacRuby/trunk/test_vm/attr.rb 2009-08-09 00:02:59 UTC (rev 2267)
+++ MacRuby/trunk/test_vm/attr.rb 2009-08-09 00:20:19 UTC (rev 2268)
@@ -46,3 +46,13 @@
o.foo = 42
p o.bar
}
+
+assert '42', %{
+ obj = Object.new
+ class << obj
+ attr_accessor :foo
+ end
+ obj.foo = 42
+ eval('nil')
+ p obj.foo
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090808/c3da182c/attachment.html>
More information about the macruby-changes
mailing list