diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-01-30 14:54:41 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-03-18 09:52:18 +0100 |
commit | f78708c180868d54e9b86e5d406b69e3de50f503 (patch) | |
tree | 8440a603bd9452f1e5100627145dc504d77bc350 /railties/lib | |
parent | de94929d70d94fd8bb20791bf544ee483db8ddc1 (diff) | |
download | rails-f78708c180868d54e9b86e5d406b69e3de50f503.tar.gz rails-f78708c180868d54e9b86e5d406b69e3de50f503.tar.bz2 rails-f78708c180868d54e9b86e5d406b69e3de50f503.zip |
use `bin/rails t` runner in `test_runner_test.rb`.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/test_unit/runner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/test_unit/runner.rb b/railties/lib/rails/test_unit/runner.rb index 6f9c3690f5..1672e4b09b 100644 --- a/railties/lib/rails/test_unit/runner.rb +++ b/railties/lib/rails/test_unit/runner.rb @@ -59,8 +59,8 @@ module Rails options[:line] &&= options[:line].to_i else arg = arg.gsub(':', '') - if Dir.exists?("test/#{arg}") - options[:patterns] << File.expand_path("test/#{arg}/**/*_test.rb") + if Dir.exists?("#{arg}") + options[:patterns] << File.expand_path("#{arg}/**/*_test.rb") elsif File.file?(arg) options[:patterns] << File.expand_path(arg) end |