mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
e7ec88a41a
commit
a319225b4a
3 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ describe :net_ftp_putbinaryfile, shared: :true do
|
||||||
"This is an", " example f",
|
"This is an", " example f",
|
||||||
"ile\nwhich ", "is going t",
|
"ile\nwhich ", "is going t",
|
||||||
"o be trans", "mitted\nusi",
|
"o be trans", "mitted\nusi",
|
||||||
"ng #putbin", "aryfile."
|
"ng #putbin", "aryfile.\n"
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe :net_ftp_puttextfile, shared: true do
|
||||||
@ftp.send(@method, @local_fixture_file, "text")
|
@ftp.send(@method, @local_fixture_file, "text")
|
||||||
|
|
||||||
remote_lines = open(@remote_tmp_file, "rb") {|f| f.read }
|
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_not == local_lines
|
||||||
remote_lines.should == local_lines.gsub("\n", "\r\n")
|
remote_lines.should == local_lines.gsub("\n", "\r\n")
|
||||||
|
|
|
@ -41,7 +41,7 @@ describe "Net::FTP#storbinary" do
|
||||||
"This is an", " example f",
|
"This is an", " example f",
|
||||||
"ile\nwhich ", "is going t",
|
"ile\nwhich ", "is going t",
|
||||||
"o be trans", "mitted\nusi",
|
"o be trans", "mitted\nusi",
|
||||||
"ng #putbin", "aryfile."
|
"ng #putbin", "aryfile.\n"
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue