From 3bd759e23f91b181e629411bb9640acdfac466c2 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 16 Feb 2016 19:58:41 +0100 Subject: [PATCH] Fixed test. --- test/controllers/user_organization_controller_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/controllers/user_organization_controller_test.rb b/test/controllers/user_organization_controller_test.rb index bce04cc70..7378a5ef2 100644 --- a/test/controllers/user_organization_controller_test.rb +++ b/test/controllers/user_organization_controller_test.rb @@ -80,8 +80,8 @@ class UserOrganizationControllerTest < ActionDispatch::IntegrationTest post '/api/v1/users', {}, @headers assert_response(422) result = JSON.parse(@response.body) - assert(result['error']) - assert_equal('Feature not enabled!', result['error']) + assert(result['error_human']) + assert_equal('Feature not enabled!', result['error_human']) # already existing user with enabled feature Setting.set('user_create_account', true) @@ -89,8 +89,8 @@ class UserOrganizationControllerTest < ActionDispatch::IntegrationTest post '/api/v1/users', params.to_json, @headers assert_response(422) result = JSON.parse(@response.body) - assert(result['error']) - assert_equal('User already exists!', result['error']) + assert(result['error_human']) + assert_equal('User already exists!', result['error_human']) # create user with enabled feature params = { firstname: 'Me First', lastname: 'Me Last', email: 'new_here@example.com' }