Skip to content

Commit

Permalink
Merge pull request #19441 from y-yagi/use_exist
Browse files Browse the repository at this point in the history
use `Dir.exist?` instead of deprecated `Dir.exists?`
  • Loading branch information
Arthur Nogueira Neves committed Mar 21, 2015
2 parents bfd7355 + a8bf335 commit 3064533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/test_unit/runner.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 3064533

Please sign in to comment.