Commit 29c00b6fc0dbe031d4119f4d1f6600a659414212
Committed by
Thiago Kenji Okada
1 parent
bb960580
Exists in
colab
and in
4 other branches
Fixes message of successful compound metric update
signed-off-by: Thiago Kenji Okada <thiago.mast3r@gmail.com>
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/controllers/compound_metric_configurations_controller.rb
| @@ -23,7 +23,7 @@ class CompoundMetricConfigurationsController < BaseMetricConfigurationsControlle | @@ -23,7 +23,7 @@ class CompoundMetricConfigurationsController < BaseMetricConfigurationsControlle | ||
| 23 | respond_to do |format| | 23 | respond_to do |format| |
| 24 | edit | 24 | edit |
| 25 | if @compound_metric_configuration.update(metric_configuration_params) | 25 | if @compound_metric_configuration.update(metric_configuration_params) |
| 26 | - format.html { redirect_to mezuro_configuration_path(@compound_metric_configuration.configuration_id), notice: 'Compound Metric Configuration was successfully created.' } | 26 | + format.html { redirect_to mezuro_configuration_path(@compound_metric_configuration.configuration_id), notice: 'Compound Metric Configuration was successfully updated.' } |
| 27 | format.json { head :no_content } | 27 | format.json { head :no_content } |
| 28 | else | 28 | else |
| 29 | failed_action(format, 'edit') | 29 | failed_action(format, 'edit') |
features/compound_metric_configuration/edition.feature
| @@ -28,6 +28,7 @@ Feature: Compound Metric Configuration edition | @@ -28,6 +28,7 @@ Feature: Compound Metric Configuration edition | ||
| 28 | And I fill the Code field with "Another_code" | 28 | And I fill the Code field with "Another_code" |
| 29 | And I press the Save button | 29 | And I press the Save button |
| 30 | Then I should see "Another_code" | 30 | Then I should see "Another_code" |
| 31 | + And I should see "Compound Metric Configuration was successfully updated." | ||
| 31 | 32 | ||
| 32 | @kalibro_restart | 33 | @kalibro_restart |
| 33 | Scenario: trying to edit with blank fields | 34 | Scenario: trying to edit with blank fields |