From 70a04eb84ab5170ecd13315e6e4e2ea218b4958a Mon Sep 17 00:00:00 2001 From: Heitor Reis Date: Wed, 28 Oct 2015 16:02:39 -0200 Subject: [PATCH] Fix hotspot metric results showing in the wrong h3 --- app/views/modules/_metric_result.html.erb | 2 +- features/repository/show/hotspot_metric_results.feature | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/modules/_metric_result.html.erb b/app/views/modules/_metric_result.html.erb index 70a630c..9eecac9 100644 --- a/app/views/modules/_metric_result.html.erb +++ b/app/views/modules/_metric_result.html.erb @@ -1,5 +1,5 @@ <% metric_configuration = metric_result.metric_configuration %> -<% unless metric_configuration.kalibro_ranges.nil? %> +<% unless metric_configuration.metric.type == "HotspotMetricSnapshot" %> <% range_snapshot = find_range_snapshot(metric_result) metric_name = metric_configuration.metric.name %> diff --git a/features/repository/show/hotspot_metric_results.feature b/features/repository/show/hotspot_metric_results.feature index 98ce2eb..702a425 100644 --- a/features/repository/show/hotspot_metric_results.feature +++ b/features/repository/show/hotspot_metric_results.feature @@ -3,7 +3,7 @@ Feature: Repository hotspot metric results As a regular user I should see the hotspot metric results list - @kalibro_configuration_restart @kalibro_processor_restart @javascript @wip + @kalibro_configuration_restart @kalibro_processor_restart @javascript Scenario: Should show the message when the graphic of the given metric has only a single point Given I am a regular user And I am signed in @@ -26,6 +26,8 @@ Feature: Repository hotspot metric results Then I should have at least one hotspot metric result And I should see the hotspot metric results file names And I should see the hotspot metric results messages + When I click the "Tree Metric Results" h3 + Then I should not see "Duplicate Code" @kalibro_configuration_restart @kalibro_processor_restart @javascript Scenario: Should show the error message when the process fails -- libgit2 0.21.2