[macruby-changes] [2434] MacRuby/trunk/test_vm/alias.rb

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 29 18:14:38 PDT 2009


Revision: 2434
          http://trac.macosforge.org/projects/ruby/changeset/2434
Author:   eloy.de.enige at gmail.com
Date:     2009-08-29 18:14:37 -0700 (Sat, 29 Aug 2009)
Log Message:
-----------
Added failing test_vm test about method_defined? for an aliased method

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

Modified: MacRuby/trunk/test_vm/alias.rb
===================================================================
--- MacRuby/trunk/test_vm/alias.rb	2009-08-30 00:36:19 UTC (rev 2433)
+++ MacRuby/trunk/test_vm/alias.rb	2009-08-30 01:14:37 UTC (rev 2434)
@@ -2,3 +2,11 @@
 assert "nil", "alias $bar $foo; p $bar"
 
 assert "42", "def foo; 42; end; alias :bar :foo; p bar"
+
+assert "true", %{
+  class X
+    def foo; end
+    alias bar foo
+  end
+  p X.method_defined?(:bar)
+}
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090829/3ee52dce/attachment.html>


More information about the macruby-changes mailing list