1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Description: fix deprecation warnings
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2020-02-03
--- a/test/mojo_magick_test.rb
+++ b/test/mojo_magick_test.rb
@@ -10,7 +10,7 @@
end
def reset_images
- FileUtils::rm_r(@working_path) if File::exists?(@working_path)
+ FileUtils::rm_r(@working_path) if File::exist?(@working_path)
FileUtils::mkdir(@working_path)
Dir::glob(File::join(@fixtures_path, '*')).each do |file|
FileUtils::cp(file, @working_path) if File::file?(file)
|