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:
commit
3064533076
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue