summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/net
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-07 12:26:25 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-07 12:26:25 +0000
commita319225b4a4ba333a6cf6989b3111bd512ad4861 (patch)
treea04bd04cde455cdc181c8f7f688c5338dbf922c5 /spec/rubyspec/library/net
parente7ec88a41a7cf943d4c0f1150ef79c0961770974 (diff)
Update specs to follow newlines added by r58596
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/rubyspec/library/net')
-rw-r--r--spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb2
-rw-r--r--spec/rubyspec/library/net/ftp/shared/puttextfile.rb2
-rw-r--r--spec/rubyspec/library/net/ftp/storbinary_spec.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb b/spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb
index f52e0c87e1..74eaf320ae 100644
--- a/spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb
+++ b/spec/rubyspec/library/net/ftp/shared/putbinaryfile.rb
@@ -45,7 +45,7 @@ describe :net_ftp_putbinaryfile, shared: :true do
"This is an", " example f",
"ile\nwhich ", "is going t",
"o be trans", "mitted\nusi",
- "ng #putbin", "aryfile."
+ "ng #putbin", "aryfile.\n"
]
end
end
diff --git a/spec/rubyspec/library/net/ftp/shared/puttextfile.rb b/spec/rubyspec/library/net/ftp/shared/puttextfile.rb
index 3c6b9a31ab..9bfdc7c41e 100644
--- a/spec/rubyspec/library/net/ftp/shared/puttextfile.rb
+++ b/spec/rubyspec/library/net/ftp/shared/puttextfile.rb
@@ -28,7 +28,7 @@ describe :net_ftp_puttextfile, shared: true do
@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")
diff --git a/spec/rubyspec/library/net/ftp/storbinary_spec.rb b/spec/rubyspec/library/net/ftp/storbinary_spec.rb
index b000b9bf6c..fc7561b5a9 100644
--- a/spec/rubyspec/library/net/ftp/storbinary_spec.rb
+++ b/spec/rubyspec/library/net/ftp/storbinary_spec.rb
@@ -41,7 +41,7 @@ describe "Net::FTP#storbinary" do
"This is an", " example f",
"ile\nwhich ", "is going t",
"o be trans", "mitted\nusi",
- "ng #putbin", "aryfile."
+ "ng #putbin", "aryfile.\n"
]
end
end