diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-19 07:02:32 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-19 07:02:32 +0000 |
commit | 77403c88cd69af1dba72fe0596633435ce665e0d (patch) | |
tree | 8d93cfdd44ba2daed88f76e09c8aca8142744e3c /test/net | |
parent | 6839d47eb88a839155db263b6d262b1e5a6a2406 (diff) |
Expand abbreviated option names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r-- | test/net/ftp/test_ftp.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb index f514efb182..6acaf87216 100644 --- a/test/net/ftp/test_ftp.rb +++ b/test/net/ftp/test_ftp.rb @@ -239,9 +239,9 @@ class FTPTest < Test::Unit::TestCase begin ftp = Net::FTP.new(SERVER_ADDR, port: server.port, - user: "foo", - passwd: "bar", - acct: "baz") + username: "foo", + password: "bar", + account: "baz") assert_equal("USER foo\r\n", commands.shift) assert_equal("PASS bar\r\n", commands.shift) assert_equal("ACCT baz\r\n", commands.shift) @@ -267,7 +267,7 @@ class FTPTest < Test::Unit::TestCase sock.print("200 Switching to Binary mode.\r\n") } begin - Net::FTP.open(SERVER_ADDR, port: server.port, user: "anonymous") do + Net::FTP.open(SERVER_ADDR, port: server.port, username: "anonymous") do end assert_equal("USER anonymous\r\n", commands.shift) assert_equal("PASS anonymous@\r\n", commands.shift) |