From f78708c180868d54e9b86e5d406b69e3de50f503 Mon Sep 17 00:00:00 2001
From: Yves Senn <yves.senn@gmail.com>
Date: Fri, 30 Jan 2015 14:54:41 +0100
Subject: use `bin/rails t` runner in `test_runner_test.rb`.

---
 railties/lib/rails/test_unit/runner.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'railties/lib')

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
-- 
cgit v1.2.3