diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index a679de796b528e528595f5dda189d8fee55e4602..22f5a42da108019227d8d21dfd48fd769458ac5e 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -44,7 +44,7 @@ def check_redis_running(pid_paths)
 
   pid_paths_arr.each { |pid_path| 
     begin
-      File.exists?("#{pid_path}") && Process.kill(0, File.read("#{pid_path}").to_i)
+      File.exist?("#{pid_path}") && Process.kill(0, File.read("#{pid_path}").to_i)
     rescue Errno::ESRCH
       FileUtils.rm "#{pid_path}"
       false
@@ -63,10 +63,10 @@ def kill_redis(pid_paths)
 
   pid_paths_arr.each { |pid_path|
     begin
-      File.exists?("#{pid_path}") && Process.kill("INT", File.read("#{pid_path}").to_i)
+      File.exist?("#{pid_path}") && Process.kill("INT", File.read("#{pid_path}").to_i)
     rescue Errno::ESRCH
     end
-    File.exists?("#{pid_path}") && FileUtils.rm("#{pid_path}")
+    File.exist?("#{pid_path}") && FileUtils.rm("#{pid_path}")
   }
 end
 
@@ -178,10 +178,10 @@ task :stop_cluster do
 
   begin
     file = "#{TMP}/appendonly.aof"
-    File.exists?(file) && FileUtils.rm(file)
+    File.exist?(file) && FileUtils.rm(file)
   end
 
-  CLUSTER_CONF_PATHS.each { |path| File.exists?("#{path}") && FileUtils.rm("#{path}") }
+  CLUSTER_CONF_PATHS.each { |path| File.exist?("#{path}") && FileUtils.rm("#{path}") }
   true
 end