Skip to content

Commit a8bf335

Browse files
committed
use Dir.exist? instead of deprecated Dir.exists?
1 parent 92a3c8d commit a8bf335

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
@@ -63,7 +63,7 @@ def self.parse(args)
6363
options[:line] &&= options[:line].to_i
6464
else
6565
arg = arg.gsub(':', '')
66-
if Dir.exists?("#{arg}")
66+
if Dir.exist?("#{arg}")
6767
options[:patterns] << File.expand_path("#{arg}/**/*_test.rb")
6868
elsif File.file?(arg)
6969
options[:patterns] << File.expand_path(arg)

0 commit comments

Comments
 (0)