diff options
Diffstat (limited to 'spec/ruby/library/net/ftp')
51 files changed, 155 insertions, 155 deletions
diff --git a/spec/ruby/library/net/ftp/abort_spec.rb b/spec/ruby/library/net/ftp/abort_spec.rb index ea47eaf9bf..ff2144a3a0 100644 --- a/spec/ruby/library/net/ftp/abort_spec.rb +++ b/spec/ruby/library/net/ftp/abort_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#abort" do before :each do diff --git a/spec/ruby/library/net/ftp/acct_spec.rb b/spec/ruby/library/net/ftp/acct_spec.rb index e60c6b3088..3db51fca0f 100644 --- a/spec/ruby/library/net/ftp/acct_spec.rb +++ b/spec/ruby/library/net/ftp/acct_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#acct" do before :each do diff --git a/spec/ruby/library/net/ftp/binary_spec.rb b/spec/ruby/library/net/ftp/binary_spec.rb index 6f1a1ab8ba..60e312a673 100644 --- a/spec/ruby/library/net/ftp/binary_spec.rb +++ b/spec/ruby/library/net/ftp/binary_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP#binary" do it "returns true when self is in binary mode" do diff --git a/spec/ruby/library/net/ftp/chdir_spec.rb b/spec/ruby/library/net/ftp/chdir_spec.rb index f6cfac5b66..1f558c47e8 100644 --- a/spec/ruby/library/net/ftp/chdir_spec.rb +++ b/spec/ruby/library/net/ftp/chdir_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#chdir" do before :each do diff --git a/spec/ruby/library/net/ftp/close_spec.rb b/spec/ruby/library/net/ftp/close_spec.rb index 0f6866221f..95c72b29ed 100644 --- a/spec/ruby/library/net/ftp/close_spec.rb +++ b/spec/ruby/library/net/ftp/close_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP#close" do before :each do diff --git a/spec/ruby/library/net/ftp/closed_spec.rb b/spec/ruby/library/net/ftp/closed_spec.rb index 7b31717c00..1f3e69b0c1 100644 --- a/spec/ruby/library/net/ftp/closed_spec.rb +++ b/spec/ruby/library/net/ftp/closed_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP#closed?" do before :each do diff --git a/spec/ruby/library/net/ftp/connect_spec.rb b/spec/ruby/library/net/ftp/connect_spec.rb index f3c1565fc2..981751233e 100644 --- a/spec/ruby/library/net/ftp/connect_spec.rb +++ b/spec/ruby/library/net/ftp/connect_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' # TODO: Add specs for using the SOCKSSocket describe "Net::FTP#connect" do diff --git a/spec/ruby/library/net/ftp/debug_mode_spec.rb b/spec/ruby/library/net/ftp/debug_mode_spec.rb index c4aa5eee3c..f49da55ed1 100644 --- a/spec/ruby/library/net/ftp/debug_mode_spec.rb +++ b/spec/ruby/library/net/ftp/debug_mode_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP#debug_mode" do it "returns true when self is in debug mode" do diff --git a/spec/ruby/library/net/ftp/default_passive_spec.rb b/spec/ruby/library/net/ftp/default_passive_spec.rb index f526373b82..af8925fc1e 100644 --- a/spec/ruby/library/net/ftp/default_passive_spec.rb +++ b/spec/ruby/library/net/ftp/default_passive_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' ruby_version_is "2.3" do describe "Net::FTP#default_passive" do diff --git a/spec/ruby/library/net/ftp/delete_spec.rb b/spec/ruby/library/net/ftp/delete_spec.rb index b20ef32651..fa0eddb312 100644 --- a/spec/ruby/library/net/ftp/delete_spec.rb +++ b/spec/ruby/library/net/ftp/delete_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#delete" do before :each do diff --git a/spec/ruby/library/net/ftp/dir_spec.rb b/spec/ruby/library/net/ftp/dir_spec.rb index 6a2b766ca2..47ac7b8d9b 100644 --- a/spec/ruby/library/net/ftp/dir_spec.rb +++ b/spec/ruby/library/net/ftp/dir_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) -require File.expand_path('../shared/list', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' +require_relative 'shared/list' describe "Net::FTP#dir" do it_behaves_like :net_ftp_list, :dir diff --git a/spec/ruby/library/net/ftp/get_spec.rb b/spec/ruby/library/net/ftp/get_spec.rb index 59fc45d010..c4672b55a5 100644 --- a/spec/ruby/library/net/ftp/get_spec.rb +++ b/spec/ruby/library/net/ftp/get_spec.rb @@ -1,8 +1,8 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) -require File.expand_path('../shared/gettextfile', __FILE__) -require File.expand_path('../shared/getbinaryfile', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' +require_relative 'shared/gettextfile' +require_relative 'shared/getbinaryfile' describe "Net::FTP#get (binary mode)" do before :each do diff --git a/spec/ruby/library/net/ftp/getbinaryfile_spec.rb b/spec/ruby/library/net/ftp/getbinaryfile_spec.rb index 0f921c8b1d..155851b53c 100644 --- a/spec/ruby/library/net/ftp/getbinaryfile_spec.rb +++ b/spec/ruby/library/net/ftp/getbinaryfile_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) -require File.expand_path('../shared/getbinaryfile', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' +require_relative 'shared/getbinaryfile' describe "Net::FTP#getbinaryfile" do it_behaves_like :net_ftp_getbinaryfile, :getbinaryfile diff --git a/spec/ruby/library/net/ftp/getdir_spec.rb b/spec/ruby/library/net/ftp/getdir_spec.rb index 19ace4dff9..eea35ac130 100644 --- a/spec/ruby/library/net/ftp/getdir_spec.rb +++ b/spec/ruby/library/net/ftp/getdir_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../shared/pwd', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'shared/pwd' describe "Net::FTP#getdir" do it_behaves_like :net_ftp_pwd, :getdir diff --git a/spec/ruby/library/net/ftp/gettextfile_spec.rb b/spec/ruby/library/net/ftp/gettextfile_spec.rb index 29077df253..79395ae009 100644 --- a/spec/ruby/library/net/ftp/gettextfile_spec.rb +++ b/spec/ruby/library/net/ftp/gettextfile_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) -require File.expand_path('../shared/gettextfile', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' +require_relative 'shared/gettextfile' describe "Net::FTP#gettextfile" do it_behaves_like :net_ftp_gettextfile, :gettextfile diff --git a/spec/ruby/library/net/ftp/help_spec.rb b/spec/ruby/library/net/ftp/help_spec.rb index 6f5f901024..c7a089a588 100644 --- a/spec/ruby/library/net/ftp/help_spec.rb +++ b/spec/ruby/library/net/ftp/help_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#help" do def with_connection diff --git a/spec/ruby/library/net/ftp/initialize_spec.rb b/spec/ruby/library/net/ftp/initialize_spec.rb index b33d345f32..cd6252ac31 100644 --- a/spec/ruby/library/net/ftp/initialize_spec.rb +++ b/spec/ruby/library/net/ftp/initialize_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP#initialize" do before :each do diff --git a/spec/ruby/library/net/ftp/last_response_code_spec.rb b/spec/ruby/library/net/ftp/last_response_code_spec.rb index 77651a9be4..3eb20f7ad8 100644 --- a/spec/ruby/library/net/ftp/last_response_code_spec.rb +++ b/spec/ruby/library/net/ftp/last_response_code_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../shared/last_response_code', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'shared/last_response_code' +require_relative 'fixtures/server' describe "Net::FTP#last_response_code" do it_behaves_like :net_ftp_last_response_code, :last_response_code diff --git a/spec/ruby/library/net/ftp/last_response_spec.rb b/spec/ruby/library/net/ftp/last_response_spec.rb index eb53f92774..ada665d59c 100644 --- a/spec/ruby/library/net/ftp/last_response_spec.rb +++ b/spec/ruby/library/net/ftp/last_response_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#last_response" do before :each do diff --git a/spec/ruby/library/net/ftp/lastresp_spec.rb b/spec/ruby/library/net/ftp/lastresp_spec.rb index d2c6f44e48..273e216e8b 100644 --- a/spec/ruby/library/net/ftp/lastresp_spec.rb +++ b/spec/ruby/library/net/ftp/lastresp_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../shared/last_response_code', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'shared/last_response_code' +require_relative 'fixtures/server' describe "Net::FTP#lastresp" do it_behaves_like :net_ftp_last_response_code, :lastresp diff --git a/spec/ruby/library/net/ftp/list_spec.rb b/spec/ruby/library/net/ftp/list_spec.rb index 41c55c42ac..6175172923 100644 --- a/spec/ruby/library/net/ftp/list_spec.rb +++ b/spec/ruby/library/net/ftp/list_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) -require File.expand_path('../shared/list', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' +require_relative 'shared/list' describe "Net::FTP#list" do it_behaves_like :net_ftp_list, :list diff --git a/spec/ruby/library/net/ftp/login_spec.rb b/spec/ruby/library/net/ftp/login_spec.rb index 9768d9cf33..c4f14f8747 100644 --- a/spec/ruby/library/net/ftp/login_spec.rb +++ b/spec/ruby/library/net/ftp/login_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#login" do before :each do diff --git a/spec/ruby/library/net/ftp/ls_spec.rb b/spec/ruby/library/net/ftp/ls_spec.rb index f713fb46aa..e729eb9481 100644 --- a/spec/ruby/library/net/ftp/ls_spec.rb +++ b/spec/ruby/library/net/ftp/ls_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) -require File.expand_path('../shared/list', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' +require_relative 'shared/list' describe "Net::FTP#ls" do it_behaves_like :net_ftp_list, :ls diff --git a/spec/ruby/library/net/ftp/mdtm_spec.rb b/spec/ruby/library/net/ftp/mdtm_spec.rb index bbd28d10b1..ddcc06d708 100644 --- a/spec/ruby/library/net/ftp/mdtm_spec.rb +++ b/spec/ruby/library/net/ftp/mdtm_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#mdtm" do before :each do diff --git a/spec/ruby/library/net/ftp/mkdir_spec.rb b/spec/ruby/library/net/ftp/mkdir_spec.rb index 2a7088e5d9..0d8314bfa3 100644 --- a/spec/ruby/library/net/ftp/mkdir_spec.rb +++ b/spec/ruby/library/net/ftp/mkdir_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#mkdir" do before :each do diff --git a/spec/ruby/library/net/ftp/mtime_spec.rb b/spec/ruby/library/net/ftp/mtime_spec.rb index 0e76aa079b..e05e92f58f 100644 --- a/spec/ruby/library/net/ftp/mtime_spec.rb +++ b/spec/ruby/library/net/ftp/mtime_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#mtime" do before :each do diff --git a/spec/ruby/library/net/ftp/nlst_spec.rb b/spec/ruby/library/net/ftp/nlst_spec.rb index 4723e9f6c6..36ca7a6127 100644 --- a/spec/ruby/library/net/ftp/nlst_spec.rb +++ b/spec/ruby/library/net/ftp/nlst_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#nlst" do before :each do diff --git a/spec/ruby/library/net/ftp/noop_spec.rb b/spec/ruby/library/net/ftp/noop_spec.rb index 1bc6ccd913..eca8911b7b 100644 --- a/spec/ruby/library/net/ftp/noop_spec.rb +++ b/spec/ruby/library/net/ftp/noop_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#noop" do before :each do diff --git a/spec/ruby/library/net/ftp/open_spec.rb b/spec/ruby/library/net/ftp/open_spec.rb index b422e64c87..7be02ff373 100644 --- a/spec/ruby/library/net/ftp/open_spec.rb +++ b/spec/ruby/library/net/ftp/open_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP.open" do before :each do diff --git a/spec/ruby/library/net/ftp/passive_spec.rb b/spec/ruby/library/net/ftp/passive_spec.rb index fd9a0dffe3..041b9552d5 100644 --- a/spec/ruby/library/net/ftp/passive_spec.rb +++ b/spec/ruby/library/net/ftp/passive_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP#passive" do it "returns true when self is in passive mode" do diff --git a/spec/ruby/library/net/ftp/put_spec.rb b/spec/ruby/library/net/ftp/put_spec.rb index 61a8d00543..f1f85b5d05 100644 --- a/spec/ruby/library/net/ftp/put_spec.rb +++ b/spec/ruby/library/net/ftp/put_spec.rb @@ -1,8 +1,8 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) -require File.expand_path('../shared/puttextfile', __FILE__) -require File.expand_path('../shared/putbinaryfile', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' +require_relative 'shared/puttextfile' +require_relative 'shared/putbinaryfile' describe "Net::FTP#put (binary mode)" do before :each do diff --git a/spec/ruby/library/net/ftp/putbinaryfile_spec.rb b/spec/ruby/library/net/ftp/putbinaryfile_spec.rb index 18955409b6..cb1c7bef5a 100644 --- a/spec/ruby/library/net/ftp/putbinaryfile_spec.rb +++ b/spec/ruby/library/net/ftp/putbinaryfile_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) -require File.expand_path('../shared/putbinaryfile', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' +require_relative 'shared/putbinaryfile' describe "Net::FTP#putbinaryfile" do it_behaves_like :net_ftp_putbinaryfile, :putbinaryfile diff --git a/spec/ruby/library/net/ftp/puttextfile_spec.rb b/spec/ruby/library/net/ftp/puttextfile_spec.rb index 2ca6e98c92..00a930afd7 100644 --- a/spec/ruby/library/net/ftp/puttextfile_spec.rb +++ b/spec/ruby/library/net/ftp/puttextfile_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) -require File.expand_path('../shared/puttextfile', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' +require_relative 'shared/puttextfile' describe "Net::FTP#puttextfile" do it_behaves_like :net_ftp_puttextfile, :puttextfile diff --git a/spec/ruby/library/net/ftp/pwd_spec.rb b/spec/ruby/library/net/ftp/pwd_spec.rb index d5438d8e56..f515cd29a0 100644 --- a/spec/ruby/library/net/ftp/pwd_spec.rb +++ b/spec/ruby/library/net/ftp/pwd_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#pwd" do before :each do diff --git a/spec/ruby/library/net/ftp/quit_spec.rb b/spec/ruby/library/net/ftp/quit_spec.rb index c053641939..fdc3a2f795 100644 --- a/spec/ruby/library/net/ftp/quit_spec.rb +++ b/spec/ruby/library/net/ftp/quit_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#quit" do before :each do diff --git a/spec/ruby/library/net/ftp/rename_spec.rb b/spec/ruby/library/net/ftp/rename_spec.rb index 0216d2059a..e1fd4e47cf 100644 --- a/spec/ruby/library/net/ftp/rename_spec.rb +++ b/spec/ruby/library/net/ftp/rename_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#rename" do before :each do diff --git a/spec/ruby/library/net/ftp/resume_spec.rb b/spec/ruby/library/net/ftp/resume_spec.rb index 9ec4a921aa..51b1cff2a4 100644 --- a/spec/ruby/library/net/ftp/resume_spec.rb +++ b/spec/ruby/library/net/ftp/resume_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP#resume" do it "returns true when self is set to resume uploads/downloads" do diff --git a/spec/ruby/library/net/ftp/retrbinary_spec.rb b/spec/ruby/library/net/ftp/retrbinary_spec.rb index fd7af0b62a..30e2484af5 100644 --- a/spec/ruby/library/net/ftp/retrbinary_spec.rb +++ b/spec/ruby/library/net/ftp/retrbinary_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#retrbinary" do before :each do diff --git a/spec/ruby/library/net/ftp/retrlines_spec.rb b/spec/ruby/library/net/ftp/retrlines_spec.rb index cb8d48ecf7..546df3844e 100644 --- a/spec/ruby/library/net/ftp/retrlines_spec.rb +++ b/spec/ruby/library/net/ftp/retrlines_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#retrlines" do before :each do diff --git a/spec/ruby/library/net/ftp/return_code_spec.rb b/spec/ruby/library/net/ftp/return_code_spec.rb index 64100bc3fc..605f66ec6e 100644 --- a/spec/ruby/library/net/ftp/return_code_spec.rb +++ b/spec/ruby/library/net/ftp/return_code_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP#return_code" do before :each do diff --git a/spec/ruby/library/net/ftp/rmdir_spec.rb b/spec/ruby/library/net/ftp/rmdir_spec.rb index 453c7823c4..ab92a8678b 100644 --- a/spec/ruby/library/net/ftp/rmdir_spec.rb +++ b/spec/ruby/library/net/ftp/rmdir_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#rmdir" do before :each do diff --git a/spec/ruby/library/net/ftp/sendcmd_spec.rb b/spec/ruby/library/net/ftp/sendcmd_spec.rb index 9bdca621bc..631bc10c84 100644 --- a/spec/ruby/library/net/ftp/sendcmd_spec.rb +++ b/spec/ruby/library/net/ftp/sendcmd_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#sendcmd" do before :each do diff --git a/spec/ruby/library/net/ftp/set_socket_spec.rb b/spec/ruby/library/net/ftp/set_socket_spec.rb index 1553445219..3aa5686326 100644 --- a/spec/ruby/library/net/ftp/set_socket_spec.rb +++ b/spec/ruby/library/net/ftp/set_socket_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' describe "Net::FTP#set_socket" do # TODO: I won't spec this method, as it is not used diff --git a/spec/ruby/library/net/ftp/site_spec.rb b/spec/ruby/library/net/ftp/site_spec.rb index d02b94e899..85aa2609c1 100644 --- a/spec/ruby/library/net/ftp/site_spec.rb +++ b/spec/ruby/library/net/ftp/site_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#site" do before :each do diff --git a/spec/ruby/library/net/ftp/size_spec.rb b/spec/ruby/library/net/ftp/size_spec.rb index a3d5db50b4..eb3ee90d0f 100644 --- a/spec/ruby/library/net/ftp/size_spec.rb +++ b/spec/ruby/library/net/ftp/size_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#size" do before :each do diff --git a/spec/ruby/library/net/ftp/status_spec.rb b/spec/ruby/library/net/ftp/status_spec.rb index 243d3fc175..22d0d47254 100644 --- a/spec/ruby/library/net/ftp/status_spec.rb +++ b/spec/ruby/library/net/ftp/status_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#status" do before :each do diff --git a/spec/ruby/library/net/ftp/storbinary_spec.rb b/spec/ruby/library/net/ftp/storbinary_spec.rb index fc7561b5a9..eb65db1e8d 100644 --- a/spec/ruby/library/net/ftp/storbinary_spec.rb +++ b/spec/ruby/library/net/ftp/storbinary_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#storbinary" do before :each do diff --git a/spec/ruby/library/net/ftp/storlines_spec.rb b/spec/ruby/library/net/ftp/storlines_spec.rb index 9ea4b83603..4affa37eee 100644 --- a/spec/ruby/library/net/ftp/storlines_spec.rb +++ b/spec/ruby/library/net/ftp/storlines_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#storlines" do before :each do diff --git a/spec/ruby/library/net/ftp/system_spec.rb b/spec/ruby/library/net/ftp/system_spec.rb index 603dd09152..73a5ddc72f 100644 --- a/spec/ruby/library/net/ftp/system_spec.rb +++ b/spec/ruby/library/net/ftp/system_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#system" do before :each do diff --git a/spec/ruby/library/net/ftp/voidcmd_spec.rb b/spec/ruby/library/net/ftp/voidcmd_spec.rb index 8b3e0c17c9..5e82b70a78 100644 --- a/spec/ruby/library/net/ftp/voidcmd_spec.rb +++ b/spec/ruby/library/net/ftp/voidcmd_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#voidcmd" do before :each do diff --git a/spec/ruby/library/net/ftp/welcome_spec.rb b/spec/ruby/library/net/ftp/welcome_spec.rb index 5505623ce3..a0d7483949 100644 --- a/spec/ruby/library/net/ftp/welcome_spec.rb +++ b/spec/ruby/library/net/ftp/welcome_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../spec_helper', __FILE__) -require File.expand_path('../fixtures/server', __FILE__) +require_relative '../../../spec_helper' +require_relative 'spec_helper' +require_relative 'fixtures/server' describe "Net::FTP#welcome" do before :each do |