From d84c309308f99ff487ed55b86dbb59f3363ee474 Mon Sep 17 00:00:00 2001 From: Diego Araújo Date: Mon, 2 Feb 2015 14:10:53 -0200 Subject: [PATCH] Fixed KalibroConfiguration's create feature --- app/controllers/kalibro_configurations_controller.rb | 2 +- features/kalibro_configuration/create.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/kalibro_configurations_controller.rb b/app/controllers/kalibro_configurations_controller.rb index 8075f52..833be57 100644 --- a/app/controllers/kalibro_configurations_controller.rb +++ b/app/controllers/kalibro_configurations_controller.rb @@ -83,7 +83,7 @@ class KalibroConfigurationsController < ApplicationController format.json { render action: 'show', status: :created, location: @kalibro_configuration } else format.html { render action: 'new' } - format.json { render json: @kalibro_configuration.errors, status: :unprocessable_entity } + format.json { render json: @kalibro_configuration.kalibro_errors, status: :unprocessable_entity } end end end diff --git a/features/kalibro_configuration/create.feature b/features/kalibro_configuration/create.feature index 7a42823..bb5fb34 100644 --- a/features/kalibro_configuration/create.feature +++ b/features/kalibro_configuration/create.feature @@ -28,7 +28,7 @@ Feature: Configuration Creation And I fill the Name field with "Kalibro" And I fill the Description field with "Web Service to collect metrics" When I press the Save button - Then I should see "Name There is already a KalibroConfiguration with name Kalibro!" + Then I should see "Name has already been taken" @kalibro_configuration_restart Scenario: configuration creation with blank name -- libgit2 0.21.2