test/test_image_finder.rb in review-3.2.0 vs test/test_image_finder.rb in review-4.0.0

- old
+ new

@@ -17,11 +17,11 @@ FileUtils.touch(path) finder = ReVIEW::Book::ImageFinder.new(dir, 'ch01', 'builder', ['.jpg']) assert_equal(path, finder.find_path('foo')) ensure - FileUtils.remove_entry_secure dir + FileUtils.remove_entry_secure(dir) end end def test_find_path_pattern2 dir = Dir.mktmpdir @@ -31,11 +31,11 @@ FileUtils.touch(path) finder = ReVIEW::Book::ImageFinder.new(dir, 'ch01', 'builder', ['.jpg']) assert_equal(path, finder.find_path('foo')) ensure - FileUtils.remove_entry_secure dir + FileUtils.remove_entry_secure(dir) end end def test_find_path_pattern3 dir = Dir.mktmpdir @@ -45,11 +45,11 @@ FileUtils.touch(path) finder = ReVIEW::Book::ImageFinder.new(dir, 'ch01', 'builder', ['.jpg']) assert_equal(path, finder.find_path('foo')) ensure - FileUtils.remove_entry_secure dir + FileUtils.remove_entry_secure(dir) end end def test_find_path_pattern4 dir = Dir.mktmpdir @@ -59,11 +59,11 @@ FileUtils.touch(path) finder = ReVIEW::Book::ImageFinder.new(dir, 'ch01', 'builder', ['.jpg']) assert_equal(path, finder.find_path('foo')) ensure - FileUtils.remove_entry_secure dir + FileUtils.remove_entry_secure(dir) end end def test_find_path_pattern5 dir = Dir.mktmpdir @@ -73,11 +73,11 @@ FileUtils.touch(path) finder = ReVIEW::Book::ImageFinder.new(dir, 'ch01', 'builder', ['.jpg']) assert_equal(path, finder.find_path('foo')) ensure - FileUtils.remove_entry_secure dir + FileUtils.remove_entry_secure(dir) end end def test_find_path_dir_symlink dir = Dir.mktmpdir @@ -91,9 +91,9 @@ FileUtils.touch(path_srcimg) finder = ReVIEW::Book::ImageFinder.new(dir, 'ch01', 'builder', ['.jpg']) assert_equal(path_dstimg, finder.find_path('foo')) ensure - FileUtils.remove_entry_secure dir + FileUtils.remove_entry_secure(dir) end end end