From 0fcb1dc003d2237de1716da139c3a3b87e018fff Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 11 Jun 2024 09:50:08 +0100 Subject: [PATCH] Updates reporter - better API detection --- report/reporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/reporter.rb b/report/reporter.rb index 2ffd914..657f515 100644 --- a/report/reporter.rb +++ b/report/reporter.rb @@ -83,7 +83,7 @@ def find_test(endpoint) relative_path = path[path.index('/tests')..-1] File.readlines(path).each_with_index do |line, index| - next unless line.include?(endpoint) + next unless line.split(':')[0].strip.gsub('"', '') == endpoint return { endpoint: endpoint, file: ".#{relative_path}", line: index + 1 } end