提交 30645330 编写于 作者: A Arthur Nogueira Neves

Merge pull request #19441 from y-yagi/use_exist

use `Dir.exist?` instead of deprecated `Dir.exists?`
......@@ -62,7 +62,7 @@ def self.parse(args)
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册