diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-03-21 16:27:43 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-03-21 16:27:43 +0900 |
commit | a8bf335793881c1710a5a8e3a604a75a5bb3b199 (patch) | |
tree | b5ad6f6e88b247d710de8ca9402f5eaf4ebc6d0f /railties/lib | |
parent | 92a3c8dcdf174dab5e8759031b6bbe6cd891fe3c (diff) | |
download | rails-a8bf335793881c1710a5a8e3a604a75a5bb3b199.tar.gz rails-a8bf335793881c1710a5a8e3a604a75a5bb3b199.tar.bz2 rails-a8bf335793881c1710a5a8e3a604a75a5bb3b199.zip |
use `Dir.exist?` instead of deprecated `Dir.exists?`
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/test_unit/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/test_unit/runner.rb b/railties/lib/rails/test_unit/runner.rb index 6700d90a33..eaf22cb55f 100644 --- a/railties/lib/rails/test_unit/runner.rb +++ b/railties/lib/rails/test_unit/runner.rb @@ -63,7 +63,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) |