aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/ftp/test_ftp.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-19 07:02:32 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-19 07:02:32 +0000
commit69172a0900e61d105b486a35064da329c66b6094 (patch)
tree8d93cfdd44ba2daed88f76e09c8aca8142744e3c /test/net/ftp/test_ftp.rb
parent58f3e5c51bd48a44ac6faab9451edce862fefab3 (diff)
downloadruby-69172a0900e61d105b486a35064da329c66b6094.tar.gz
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/ftp/test_ftp.rb')
-rw-r--r--test/net/ftp/test_ftp.rb8
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)