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

ruby-changes:46480

From: eregon <ko1@a...>
Date: Sun, 7 May 2017 21:26:33 +0900 (JST)
Subject: [ruby-changes:46480] eregon:r58599 (trunk): Update specs to follow newlines added by r58596

eregon	2017-05-07 21:26:25 +0900 (Sun, 07 May 2017)

  New Revision: 58599

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

  Log:
    Update specs to follow newlines added by r58596

  Modified files:
    trunk/spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb
    trunk/spec/rubyspec/library/net/ftp/shared/puttextfile.rb
    trunk/spec/rubyspec/library/net/ftp/storbinary_spec.rb
Index: spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb
===================================================================
--- spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb	(revision 58598)
+++ spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb	(revision 58599)
@@ -45,7 +45,7 @@ describe :net_ftp_putbinaryfile, shared: https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb#L45
         "This is an", " example f",
         "ile\nwhich ", "is going t",
         "o be trans", "mitted\nusi",
-        "ng #putbin", "aryfile."
+        "ng #putbin", "aryfile.\n"
       ]
     end
   end
Index: spec/rubyspec/library/net/ftp/shared/puttextfile.rb
===================================================================
--- spec/rubyspec/library/net/ftp/shared/puttextfile.rb	(revision 58598)
+++ spec/rubyspec/library/net/ftp/shared/puttextfile.rb	(revision 58599)
@@ -28,7 +28,7 @@ describe :net_ftp_puttextfile, shared: t https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/library/net/ftp/shared/puttextfile.rb#L28
     @ftp.send(@method, @local_fixture_file, "text")
 
     remote_lines = open(@remote_tmp_file,    "rb") {|f| f.read }
-    local_lines  = open(@local_fixture_file, "rb") {|f| f.read } + "\n"
+    local_lines  = open(@local_fixture_file, "rb") {|f| f.read }
 
     remote_lines.should_not == local_lines
     remote_lines.should == local_lines.gsub("\n", "\r\n")
Index: spec/rubyspec/library/net/ftp/storbinary_spec.rb
===================================================================
--- spec/rubyspec/library/net/ftp/storbinary_spec.rb	(revision 58598)
+++ spec/rubyspec/library/net/ftp/storbinary_spec.rb	(revision 58599)
@@ -41,7 +41,7 @@ describe "Net::FTP#storbinary" do https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/library/net/ftp/storbinary_spec.rb#L41
         "This is an", " example f",
         "ile\nwhich ", "is going t",
         "o be trans", "mitted\nusi",
-        "ng #putbin", "aryfile."
+        "ng #putbin", "aryfile.\n"
       ]
     end
   end

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

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