[前][次][番号順一覧][スレッド一覧]

ruby-changes:50473

From: eregon <ko1@a...>
Date: Wed, 28 Feb 2018 05:46:04 +0900 (JST)
Subject: [ruby-changes:50473] eregon:r62605 (trunk): Update to ruby/spec@51f301d

eregon	2018-02-28 05:45:59 +0900 (Wed, 28 Feb 2018)

  New Revision: 62605

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62605

  Log:
    Update to ruby/spec@51f301d

  Modified files:
    trunk/spec/ruby/command_line/dash_upper_e_spec.rb
    trunk/spec/ruby/core/encoding/default_external_spec.rb
Index: spec/ruby/command_line/dash_upper_e_spec.rb
===================================================================
--- spec/ruby/command_line/dash_upper_e_spec.rb	(revision 62604)
+++ spec/ruby/command_line/dash_upper_e_spec.rb	(revision 62605)
@@ -4,9 +4,11 @@ describe "ruby -E" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/command_line/dash_upper_e_spec.rb#L4
     result.should == "EUC-JP"
   end
 
-  it "also sets the filesystem encoding with '-E external'" do
-    result = ruby_exe("print Encoding.find('filesystem')", options: '-E euc-jp')
-    result.should == "EUC-JP"
+  platform_is_not :windows do
+    it "also sets the filesystem encoding with '-E external'" do
+      result = ruby_exe("print Encoding.find('filesystem')", options: '-E euc-jp')
+      result.should == "EUC-JP"
+    end
   end
 
   it "sets the external encoding with '-E external:'" do
Index: spec/ruby/core/encoding/default_external_spec.rb
===================================================================
--- spec/ruby/core/encoding/default_external_spec.rb	(revision 62604)
+++ spec/ruby/core/encoding/default_external_spec.rb	(revision 62605)
@@ -35,9 +35,11 @@ with_feature :encoding do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/encoding/default_external_spec.rb#L35
       Encoding.find('external').should == Encoding::SHIFT_JIS
     end
 
-    it "also sets the filesystem encoding" do
-      Encoding.default_external = Encoding::SHIFT_JIS
-      Encoding.find('filesystem').should == Encoding::SHIFT_JIS
+    platform_is_not :windows do
+      it "also sets the filesystem encoding" do
+        Encoding.default_external = Encoding::SHIFT_JIS
+        Encoding.find('filesystem').should == Encoding::SHIFT_JIS
+      end
     end
 
     it "can accept a name of an encoding as a String" do

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]