Commit d84c309308f99ff487ed55b86dbb59f3363ee474
Committed by
Rafael Manzo
1 parent
bc18aab8
Exists in
colab
and in
4 other branches
Fixed KalibroConfiguration's create feature
Signed off by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/controllers/kalibro_configurations_controller.rb
... | ... | @@ -83,7 +83,7 @@ class KalibroConfigurationsController < ApplicationController |
83 | 83 | format.json { render action: 'show', status: :created, location: @kalibro_configuration } |
84 | 84 | else |
85 | 85 | format.html { render action: 'new' } |
86 | - format.json { render json: @kalibro_configuration.errors, status: :unprocessable_entity } | |
86 | + format.json { render json: @kalibro_configuration.kalibro_errors, status: :unprocessable_entity } | |
87 | 87 | end |
88 | 88 | end |
89 | 89 | end | ... | ... |
features/kalibro_configuration/create.feature
... | ... | @@ -28,7 +28,7 @@ Feature: Configuration Creation |
28 | 28 | And I fill the Name field with "Kalibro" |
29 | 29 | And I fill the Description field with "Web Service to collect metrics" |
30 | 30 | When I press the Save button |
31 | - Then I should see "Name There is already a KalibroConfiguration with name Kalibro!" | |
31 | + Then I should see "Name has already been taken" | |
32 | 32 | |
33 | 33 | @kalibro_configuration_restart |
34 | 34 | Scenario: configuration creation with blank name | ... | ... |