[macruby-changes] [1105] MacRuby/branches/experimental/spec/frozen

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 23 07:04:42 PDT 2009


Revision: 1105
          http://trac.macosforge.org/projects/ruby/changeset/1105
Author:   eloy.de.enige at gmail.com
Date:     2009-03-23 07:04:39 -0700 (Mon, 23 Mar 2009)
Log Message:
-----------
Fixed alias specs on 1.9 and removed the alias 1.9 fails tags.

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/frozen/language/alias_spec.rb

Removed Paths:
-------------
    MacRuby/branches/experimental/spec/frozen/tags/1.9/language/alias_tags.txt

Modified: MacRuby/branches/experimental/spec/frozen/language/alias_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/language/alias_spec.rb	2009-03-23 13:45:34 UTC (rev 1104)
+++ MacRuby/branches/experimental/spec/frozen/language/alias_spec.rb	2009-03-23 14:04:39 UTC (rev 1105)
@@ -28,7 +28,7 @@
     @meta.class_eval do
       alias __value value
     end
-    (@obj.methods - original_methods).should == ["__value"]
+    (@obj.methods - original_methods).map {|m| m.to_s }.should == ["__value"]
   end
 
   it "adds the new method to the list of public methods" do
@@ -36,7 +36,7 @@
     @meta.class_eval do
       alias __value value
     end
-    (@obj.public_methods - original_methods).should == ["__value"]
+    (@obj.public_methods - original_methods).map {|m| m.to_s }.should == ["__value"]
   end
 
   it "overwrites an existing method with the target name" do

Deleted: MacRuby/branches/experimental/spec/frozen/tags/1.9/language/alias_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/1.9/language/alias_tags.txt	2009-03-23 13:45:34 UTC (rev 1104)
+++ MacRuby/branches/experimental/spec/frozen/tags/1.9/language/alias_tags.txt	2009-03-23 14:04:39 UTC (rev 1105)
@@ -1,2 +0,0 @@
-fails:The alias keyword adds the new method to the list of methods
-fails:The alias keyword adds the new method to the list of public methods
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090323/4ea135ae/attachment-0001.html>


More information about the macruby-changes mailing list