Commit 8b2e3e429e66ccf1f24a66ad99d8957ded99147d
Committed by
Rafael Manzo
1 parent
a7d96921
Exists in
colab
and in
4 other branches
Fixed metric configuration create acceptance test
Signed off by: Diego Araújo <diegoamc90@gmail.com>
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
app/controllers/metric_configurations_controller.rb
... | ... | @@ -12,7 +12,7 @@ class MetricConfigurationsController < BaseMetricConfigurationsController |
12 | 12 | |
13 | 13 | def create |
14 | 14 | super |
15 | - @metric_configuration.metric = KalibroClient::Entities::Processor::MetricCollectorDetails.find(params[:metric_collector_name]).metric params[:metric_name] | |
15 | + @metric_configuration.metric = KalibroClient::Entities::Processor::MetricCollectorDetails.find_by_name(params[:metric_collector_name]).find_metric_by_name params[:metric_name] | |
16 | 16 | respond_to do |format| |
17 | 17 | create_and_redir(format) |
18 | 18 | end | ... | ... |
features/compound_metric_configuration/create.feature