Commit d84c309308f99ff487ed55b86dbb59f3363ee474

Authored by Diego Camarinha
Committed by Rafael Manzo
1 parent bc18aab8

Fixed KalibroConfiguration's create feature

Signed off by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
app/controllers/kalibro_configurations_controller.rb
@@ -83,7 +83,7 @@ class KalibroConfigurationsController &lt; ApplicationController @@ -83,7 +83,7 @@ class KalibroConfigurationsController &lt; ApplicationController
83 format.json { render action: 'show', status: :created, location: @kalibro_configuration } 83 format.json { render action: 'show', status: :created, location: @kalibro_configuration }
84 else 84 else
85 format.html { render action: 'new' } 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 end 87 end
88 end 88 end
89 end 89 end
features/kalibro_configuration/create.feature
@@ -28,7 +28,7 @@ Feature: Configuration Creation @@ -28,7 +28,7 @@ Feature: Configuration Creation
28 And I fill the Name field with "Kalibro" 28 And I fill the Name field with "Kalibro"
29 And I fill the Description field with "Web Service to collect metrics" 29 And I fill the Description field with "Web Service to collect metrics"
30 When I press the Save button 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 @kalibro_configuration_restart 33 @kalibro_configuration_restart
34 Scenario: configuration creation with blank name 34 Scenario: configuration creation with blank name