forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify normalization of regexp test filters
Follow-up to rails#47942. This commit simplifies the normalization of regexp test filters. Instead of modifying a given regexp to match a union of whitespace and underscores, the regexp is unioned with the underscore-normalized version of itself. This allows filters that include escaped spaces, such as `/foo\ bar/`. This commit also fixes `Rails::LineFiltering#run` such that normalization isn't reapplied for every test suite. Thus `normalize_declarative_test_filter` is no longer required to be idempotent. Co-authored-by: Jonathan Hefner <[email protected]>
- Loading branch information
1 parent
31052d0
commit 0a8e537
Showing
3 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters