Skip to content

Commit

Permalink
[#186400113] Align with Ruby 3.2 removed methods - File.exists?
Browse files Browse the repository at this point in the history
  • Loading branch information
hegwin committed Nov 3, 2023
1 parent 07bb29b commit 574f7b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/baidu-netdisk/version.rb
@@ -1,3 +1,3 @@
module BaiduNetDisk
VERSION = '0.1.0'
VERSION = '0.1.1'
end
8 changes: 4 additions & 4 deletions spec/baidu-netdisk/uploader_spec.rb
Expand Up @@ -140,7 +140,7 @@ def remove_big_file(path)
subject.send :prepare
subject.send :clear_up

expect(File.exists?(source_path)).to be_truthy
expect(File.exist?(source_path)).to be_truthy
end
end

Expand All @@ -156,14 +156,14 @@ def remove_big_file(path)
slices = subject.instance_variable_get :@slices

slices.each do |slice|
expect(File.exists?(slice[:slice_file_path])).to be_truthy
expect(File.exist?(slice[:slice_file_path])).to be_truthy
end

subject.send :clear_up

expect(File.exists?(source_path)).to be_truthy
expect(File.exist?(source_path)).to be_truthy
slices.each do |slice|
expect(File.exists?(slice[:slice_file_path])).to be_falsey
expect(File.exist?(slice[:slice_file_path])).to be_falsey
end
end
end
Expand Down

0 comments on commit 574f7b3

Please sign in to comment.