We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tool/parse_mri_errors.rb
1 parent d2ef575 commit 6101dfbCopy full SHA for 6101dfb
tool/parse_mri_errors.rb
@@ -55,7 +55,9 @@
55
56
FileUtils.mkdir_p(File.dirname(file))
57
lines = File.exist?(file) ? File.readlines(file) : []
58
- if i = lines.index { |line| line.start_with?(prefix) }
+
59
+ # we need the ',' to handle a case when one test name is a substring of another test name
60
+ if i = lines.index { |line| line.start_with?(prefix + ",") }
61
puts "already excluded: #{class_name}##{test_method}"
62
lines[i] = new_line
63
else
0 commit comments