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