[macruby-changes] [4175] MacRuby/trunk/spec/frozen/core/encoding/converter/convpath_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Sun May 30 04:10:29 PDT 2010


Revision: 4175
          http://trac.macosforge.org/projects/ruby/changeset/4175
Author:   eloy.de.enige at gmail.com
Date:     2010-05-30 04:10:25 -0700 (Sun, 30 May 2010)
Log Message:
-----------
Only describe the endpoints of encoding conversion. It's an implementation detail, as discussed with Matz at EuRuKo 2010.

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/core/encoding/converter/convpath_spec.rb

Modified: MacRuby/trunk/spec/frozen/core/encoding/converter/convpath_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/encoding/converter/convpath_spec.rb	2010-05-28 21:07:07 UTC (rev 4174)
+++ MacRuby/trunk/spec/frozen/core/encoding/converter/convpath_spec.rb	2010-05-30 11:10:25 UTC (rev 4175)
@@ -28,8 +28,8 @@
     it "returns multiple encoding pairs when direct conversion is impossible" do
       ec = Encoding::Converter.new('ascii','Big5')
       ec.convpath.size.should == 2
-      ec.convpath.first.should == [Encoding::US_ASCII, Encoding::UTF_8]
-      ec.convpath.last.should == [Encoding::UTF_8, Encoding::Big5]
+      ec.convpath.first.first.should == Encoding::US_ASCII
+      ec.convpath.last.last.should == Encoding::Big5
     end
 
     it "sets the last element of each pair to the first element of the next" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100530/8c0100e9/attachment.html>


More information about the macruby-changes mailing list