Commit 8f333bbc049662d8e9344ec5b3964e53c6828915
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'api_captcha_with_frontend_console_feedback' into api
* api_captcha_with_frontend_console_feedback: Fix user messages
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
lib/noosfero/api/helpers.rb
test/unit/api/users_test.rb
... | ... | @@ -29,7 +29,7 @@ class UsersTest < ActiveSupport::TestCase |
29 | 29 | params[:user] = {:login => 'some', :password => '123456', :password_confirmation => '123456', :email => 'some@some.com'} |
30 | 30 | post "/api/v1/users?#{params.to_query}" |
31 | 31 | json = JSON.parse(last_response.body) |
32 | - assert_equal 'Username / Email já está em uso,e-Mail já está em uso', json['error'] | |
32 | + assert_equal 'Username / Email já está em uso,e-Mail já está em uso', json['message'] | |
33 | 33 | end |
34 | 34 | |
35 | 35 | should 'return 400 status for invalid user creation' do | ... | ... |