From 3cc783b6bf20da27079038e7c52ce214f1042df3 Mon Sep 17 00:00:00 2001 From: Arthur Neves Date: Thu, 29 Jan 2015 10:07:32 -0500 Subject: Add tests for runner#test_files method --- railties/lib/rails/test_unit/runner.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/test_unit/runner.rb b/railties/lib/rails/test_unit/runner.rb index 982f77d0e3..a970039b93 100644 --- a/railties/lib/rails/test_unit/runner.rb +++ b/railties/lib/rails/test_unit/runner.rb @@ -94,13 +94,6 @@ module Rails @options[:backtrace] end - private - def run_tests - test_files.to_a.each do |file| - require File.expand_path file - end - end - def test_files return [@options[:filename]] if @options[:filename] if @options[:patterns] @@ -111,6 +104,13 @@ module Rails Rake::FileList[pattern] end + private + def run_tests + test_files.to_a.each do |file| + require File.expand_path file + end + end + def test_methods methods_map = [] suites = Minitest::Runnable.runnables.shuffle -- cgit v1.2.3