Revision
3839
Author
lsansonetti@apple.com
Date
2010-03-20 17:08:35 -0700 (Sat, 20 Mar 2010)

Log Message

avoid side effect

Modified Paths

Diff

Modified: MacRuby/trunk/spec/frozen/core/kernel/String_spec.rb (3838 => 3839)


--- 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