File.exists? has been replaced by File.exist?
MODIFY
features/support/env.rb
features/support/env.rb
@@ -46,7 +46,7 @@ end
def system_notification_log_path
log_path = tmp_path + "/system_notifications.log"
- `touch #{log_path}` unless File.exists?(log_path)
+ `touch #{log_path}` unless File.exist?(log_path)
log_path
end

MODIFY
features/support/test_daemons/redis.rb
features/support/test_daemons/redis.rb
@@ -131,11 +131,11 @@ module TestDaemons
private
def create_dir
- FileUtils.mkdir(dir) unless File.exists?(dir)
+ FileUtils.mkdir(dir) unless File.exist?(dir)
end
def remove_dir
- FileUtils.rm_r(dir) if File.exists?(dir)
+ FileUtils.rm_r(dir) if File.exist?(dir)
end
def create_config
@@ -145,11 +145,11 @@ module TestDaemons
end
def remove_config
- FileUtils.rm(config_filename) if File.exists?(config_filename)
+ FileUtils.rm(config_filename) if File.exist?(config_filename)
end
def remove_pid_file
- FileUtils.rm(pid_file) if File.exists?(pid_file)
+ FileUtils.rm(pid_file) if File.exist?(pid_file)
end
def tmp_path

File.exists? has been replaced by File.exist?