1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #19441 from y-yagi/use_exist

use `Dir.exist?` instead of deprecated `Dir.exists?`
This commit is contained in:
Arthur Nogueira Neves 2015-03-21 12:24:39 -04:00
commit 3064533076

View file

@ -62,7 +62,7 @@ module Rails
options[:line] &&= options[:line].to_i
else
arg = arg.gsub(':', '')
if Dir.exists?("#{arg}")
if Dir.exist?("#{arg}")
options[:patterns] << File.expand_path("#{arg}/**/*_test.rb")
elsif File.file?(arg)
options[:patterns] << File.expand_path(arg)