[macruby-changes] [1340] MacRuby/branches/experimental/spec/frozen/core/array/to_s_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sat Apr 4 08:24:00 PDT 2009
Revision: 1340
http://trac.macosforge.org/projects/ruby/changeset/1340
Author: eloy.de.enige at gmail.com
Date: 2009-04-04 08:24:00 -0700 (Sat, 04 Apr 2009)
Log Message:
-----------
Array#to_s is equivalent to Array#inspect in Ruby 1.9
Modified Paths:
--------------
MacRuby/branches/experimental/spec/frozen/core/array/to_s_spec.rb
Modified: MacRuby/branches/experimental/spec/frozen/core/array/to_s_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/array/to_s_spec.rb 2009-04-04 15:23:51 UTC (rev 1339)
+++ MacRuby/branches/experimental/spec/frozen/core/array/to_s_spec.rb 2009-04-04 15:24:00 UTC (rev 1340)
@@ -17,9 +17,9 @@
end
ruby_version_is "1.9" do
- it "is the array, with commas and brackets" do
+ it "is equivalent to Array#inspect" do
a = [1, 2, 3, 4]
- a.to_s.should == "[1, 2, 3, 4]"
+ a.to_s.should == a.inspect
end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090404/20690c8f/attachment-0001.html>
More information about the macruby-changes
mailing list