X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fnewslash_web%2Ft%2Fapi%2Fuser.t;h=d7dfc9b0e7ecc7f6b732d6161f9b1482e14f2c43;hb=86ba49b0d8f4606e145f8ae4aff4bbeb32c826fb;hp=95734ca54fc9c53b5d7128b95bcbe40668f3be17;hpb=8078d16f6d513a475b9b230ff89f8f1144c302cd;p=newslash%2Fnewslash.git diff --git a/src/newslash_web/t/api/user.t b/src/newslash_web/t/api/user.t index 95734ca5..d7dfc9b0 100644 --- a/src/newslash_web/t/api/user.t +++ b/src/newslash_web/t/api/user.t @@ -81,7 +81,7 @@ subtest 'validate new users' => sub { ->status_is(400) ->content_type_like(qr|application/json|) ->json_has('/error') - ->json_is('/email_error', "EMAIL_EXISTS") + ->json_is('/email_error', "ADDRESS_EXISTS") ->or(sub {diag "message: " . dumper($t->tx->res->json);}); # invalid email @@ -89,7 +89,7 @@ subtest 'validate new users' => sub { ->status_is(400) ->content_type_like(qr|application/json|) ->json_has('/error') - ->json_is('/email_error', "INVALID_EMAIL") + ->json_is('/email_error', "INVALID_ADDRESS") ->or(sub {diag "message: " . dumper($t->tx->res->json);}); # ok