File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
railties/lib/rails/test_unit Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,7 @@ def run(argv = [])
43
43
end
44
44
45
45
def load_tests ( argv )
46
- patterns = extract_filters ( argv )
47
-
48
- tests = Rake ::FileList [ patterns . any? ? patterns : default_test_glob ]
49
- tests . exclude ( default_test_exclude_glob ) if patterns . empty?
46
+ tests = list_tests ( argv )
50
47
tests . to_a . each { |path | require File . expand_path ( path ) }
51
48
end
52
49
@@ -94,6 +91,14 @@ def regexp_filter?(arg)
94
91
def path_argument? ( arg )
95
92
%r"^[/\\ ]?\w +[/\\ ]" . match? ( arg )
96
93
end
94
+
95
+ def list_tests ( argv )
96
+ patterns = extract_filters ( argv )
97
+
98
+ tests = Rake ::FileList [ patterns . any? ? patterns : default_test_glob ]
99
+ tests . exclude ( default_test_exclude_glob ) if patterns . empty?
100
+ tests
101
+ end
97
102
end
98
103
end
99
104
You can’t perform that action at this time.
0 commit comments