diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-09-04 16:07:46 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2023-09-04 16:07:46 +0200 |
commit | 0b5c61494eb30c8c1867b9e6a52ad678e3f47901 (patch) | |
tree | 30ca3af5dadae196c39dae8c7e35c28b0537dd4a /spec/ruby/library/net | |
parent | 3504f928dfb60b763e7b66149ca45cdbb45df78a (diff) | |
download | ruby-0b5c61494eb30c8c1867b9e6a52ad678e3f47901.tar.gz |
Update to ruby/spec@96d1072
Diffstat (limited to 'spec/ruby/library/net')
-rw-r--r-- | spec/ruby/library/net/ftp/shared/getbinaryfile.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/net/ftp/shared/putbinaryfile.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/net/ftp/shared/puttextfile.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/net/ftp/storbinary_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/net/ftp/storlines_spec.rb | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/net/ftp/shared/getbinaryfile.rb b/spec/ruby/library/net/ftp/shared/getbinaryfile.rb index 71f226089d..ceec8e7cd5 100644 --- a/spec/ruby/library/net/ftp/shared/getbinaryfile.rb +++ b/spec/ruby/library/net/ftp/shared/getbinaryfile.rb @@ -1,6 +1,6 @@ describe :net_ftp_getbinaryfile, shared: true do before :each do - @fixture_file = File.dirname(__FILE__) + "/../fixtures/getbinaryfile" + @fixture_file = __dir__ + "/../fixtures/getbinaryfile" @tmp_file = tmp("getbinaryfile") @server = NetFTPSpecs::DummyFTP.new diff --git a/spec/ruby/library/net/ftp/shared/putbinaryfile.rb b/spec/ruby/library/net/ftp/shared/putbinaryfile.rb index 7dddcbc26b..45f53adc2a 100644 --- a/spec/ruby/library/net/ftp/shared/putbinaryfile.rb +++ b/spec/ruby/library/net/ftp/shared/putbinaryfile.rb @@ -3,7 +3,7 @@ describe :net_ftp_putbinaryfile, shared: true do @server = NetFTPSpecs::DummyFTP.new @server.serve_once - @local_fixture_file = File.dirname(__FILE__) + "/../fixtures/putbinaryfile" + @local_fixture_file = __dir__ + "/../fixtures/putbinaryfile" @remote_tmp_file = tmp("binaryfile", false) @ftp = Net::FTP.new diff --git a/spec/ruby/library/net/ftp/shared/puttextfile.rb b/spec/ruby/library/net/ftp/shared/puttextfile.rb index 50e8de28e6..3836e954b8 100644 --- a/spec/ruby/library/net/ftp/shared/puttextfile.rb +++ b/spec/ruby/library/net/ftp/shared/puttextfile.rb @@ -3,7 +3,7 @@ describe :net_ftp_puttextfile, shared: true do @server = NetFTPSpecs::DummyFTP.new @server.serve_once - @local_fixture_file = File.dirname(__FILE__) + "/../fixtures/puttextfile" + @local_fixture_file = __dir__ + "/../fixtures/puttextfile" @remote_tmp_file = tmp("textfile", false) @ftp = Net::FTP.new diff --git a/spec/ruby/library/net/ftp/storbinary_spec.rb b/spec/ruby/library/net/ftp/storbinary_spec.rb index 64c9090760..6f73344612 100644 --- a/spec/ruby/library/net/ftp/storbinary_spec.rb +++ b/spec/ruby/library/net/ftp/storbinary_spec.rb @@ -9,7 +9,7 @@ ruby_version_is ""..."3.1" do @server = NetFTPSpecs::DummyFTP.new @server.serve_once - @local_fixture_file = File.dirname(__FILE__) + "/fixtures/putbinaryfile" + @local_fixture_file = __dir__ + "/fixtures/putbinaryfile" @tmp_file = tmp("binaryfile", false) @ftp = Net::FTP.new diff --git a/spec/ruby/library/net/ftp/storlines_spec.rb b/spec/ruby/library/net/ftp/storlines_spec.rb index a4bb7af799..32b9448732 100644 --- a/spec/ruby/library/net/ftp/storlines_spec.rb +++ b/spec/ruby/library/net/ftp/storlines_spec.rb @@ -9,7 +9,7 @@ ruby_version_is ""..."3.1" do @server = NetFTPSpecs::DummyFTP.new @server.serve_once - @local_fixture_file = File.dirname(__FILE__) + "/fixtures/puttextfile" + @local_fixture_file = __dir__ + "/fixtures/puttextfile" @tmp_file = tmp("textfile", false) @ftp = Net::FTP.new |