[macruby-changes] [3839] MacRuby/trunk/spec/frozen/core/kernel/String_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 20 17:08:37 PDT 2010


Revision: 3839
          http://trac.macosforge.org/projects/ruby/changeset/3839
Author:   lsansonetti at apple.com
Date:     2010-03-20 17:08:35 -0700 (Sat, 20 Mar 2010)
Log Message:
-----------
avoid side effect

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/core/kernel/String_spec.rb

Modified: MacRuby/trunk/spec/frozen/core/kernel/String_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/kernel/String_spec.rb	2010-03-21 00:01:18 UTC (rev 3838)
+++ MacRuby/trunk/spec/frozen/core/kernel/String_spec.rb	2010-03-21 00:08:35 UTC (rev 3839)
@@ -16,7 +16,7 @@
   end
 
   it "converts a constant to a String" do
-    @object.send(@method, Object).should == "Object"
+    @object.send(@method, Object).should == Object.to_s
   end
 
   it "calls #to_s to convert an arbitrary object to a String" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100320/269b7567/attachment.html>


More information about the macruby-changes mailing list