2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: display email validation error messages

This commit is contained in:
Neil Lalonde 2017-09-11 13:22:04 -04:00
parent e924920bec
commit d7d9923b8e
4 changed files with 14 additions and 5 deletions

View file

@ -621,7 +621,7 @@ describe Admin::UsersController do
xhr :post, :sync_sso, Rack::Utils.parse_query(sso.payload)
expect(response.status).to eq(403)
expect(JSON.parse(response.body)["message"]).to include("Primary email is invalid")
expect(JSON.parse(response.body)["message"]).to include("Primary email can't be blank")
end
end
end