Commit 2f185be5b5767db41561cb6cc96600ba0c9bd069

Authored by Heitor
Committed by Rafael Manzo
1 parent aaae2246

Skip coverage check for metric_configuration_params

The code is pretty straightforward, just raising an Error in order to
force subclasses to implement this.

Signed-off-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
app/controllers/base_metric_configurations_controller.rb
... ... @@ -89,9 +89,12 @@ class BaseMetricConfigurationsController &lt; ApplicationController
89 89 Rails.cache.delete("#{@kalibro_configuration.id}_hotspot_metric_configurations")
90 90 end
91 91  
  92 + # Notice: If you add some logic to this method, remove the :nocov: below
  93 + # :nocov:
92 94 def metric_configuration_params
93 95 raise NotImplementedError
94 96 end
  97 + # :nocov:
95 98  
96 99 def set_kalibro_configuration!
97 100 @kalibro_configuration = KalibroConfiguration.find params[:kalibro_configuration_id].to_i
... ...