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,7 +12,7 @@ class MetricConfigurationsController < BaseMetricConfigurationsController | ||
12 | 12 | ||
13 | def create | 13 | def create |
14 | super | 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 | respond_to do |format| | 16 | respond_to do |format| |
17 | create_and_redir(format) | 17 | create_and_redir(format) |
18 | end | 18 | end |
features/compound_metric_configuration/create.feature
@@ -29,5 +29,4 @@ Feature: Compound Metric Configuration Creation | @@ -29,5 +29,4 @@ Feature: Compound Metric Configuration Creation | ||
29 | Then I should see "My Compound Metric" | 29 | Then I should see "My Compound Metric" |
30 | And I should see "mcm" | 30 | And I should see "mcm" |
31 | And I should see "8" | 31 | And I should see "8" |
32 | - And I should see "AVERAGE" | ||
33 | 32 |