1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/test_unit
Eugene Kenny 326d502714 Handle paths with trailing slashes in rails test
The `rails test` command scans its arguments for test paths to load
before handing off option parsing to Minitest. To avoid incorrectly
interpreting a `-n /regex/` pattern as an absolute path to a directory,
it skips arguments that end with a slash. However a relative path ending
in a slash is not ambiguous, so we can safely treat those as test paths.

This is especially useful in bash, where tab completing a directory
leaves a trailing slash in place.
2020-03-26 21:48:17 +00:00
..
line_filtering.rb Remove unused require 2017-08-19 09:21:18 +09:00
railtie.rb [Railties] require_relative => require 2017-10-21 22:48:26 +09:00
reporter.rb Show rails instead of bin/rails on USAGE instructions 2018-07-06 22:46:54 +02:00
runner.rb Handle paths with trailing slashes in rails test 2020-03-26 21:48:17 +00:00
testing.rake Add rails test:channels. 2019-01-16 16:34:34 +00:00