Skip to content

Commit 3064533

Browse files
author
Arthur Nogueira Neves
committed
Merge pull request rails#19441 from y-yagi/use_exist
use `Dir.exist?` instead of deprecated `Dir.exists?`
2 parents bfd7355 + a8bf335 commit 3064533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/test_unit/runner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def self.parse(args)
6262
options[:line] &&= options[:line].to_i
6363
else
6464
arg = arg.gsub(':', '')
65-
if Dir.exists?("#{arg}")
65+
if Dir.exist?("#{arg}")
6666
options[:patterns] << File.expand_path("#{arg}/**/*_test.rb")
6767
elsif File.file?(arg)
6868
options[:patterns] << File.expand_path(arg)

0 commit comments

Comments
 (0)