From cdee16e425fe7c40897dbcd5d8ab18d21bc17afd Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Fri, 16 Feb 2024 11:41:25 -0800 Subject: [PATCH] Small regexp tweaks --- lib/mighty_test/test_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mighty_test/test_parser.rb b/lib/mighty_test/test_parser.rb index 9141051..30207c2 100644 --- a/lib/mighty_test/test_parser.rb +++ b/lib/mighty_test/test_parser.rb @@ -20,7 +20,7 @@ def test_name_at_line(number) attr_reader :path def match_minitest_method_name(line) - line[/^\s+(?:focus\s+)?def (test_\w+)/, 1] + line[/^\s*(?:focus\s+)?def\s+(test_\w+)/, 1] end def match_active_support_test_string(line)