From d5d6b149df3d2d565859599334327e378e5b2a84 Mon Sep 17 00:00:00 2001 From: shugo Date: Tue, 8 Sep 2015 06:08:20 +0000 Subject: * lib/net/ftp.rb (list): fetch all the lines before yielding a block to allow other commands in the block. [Feature #11454] Patched by Srikanth Shreenivas. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/ftp/test_ftp.rb | 140 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) (limited to 'test/net/ftp') diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb index 618a9da287..ad8ef5aa37 100644 --- a/test/net/ftp/test_ftp.rb +++ b/test/net/ftp/test_ftp.rb @@ -741,6 +741,146 @@ class FTPTest < Test::Unit::TestCase end end + def test_retrlines + commands = [] + text_data = <