Skip to content

Commit

Permalink
Those last fixes revealed some bugs. This fixes them.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Aug 20, 2019
1 parent 70e97a8 commit e221156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/003_user_admin.t
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ my $res = $test->request(POST '/register',
);

ok $res, 'Got a response from /register';
is $res->code, 200, 'Response is 200';
is $res->code, 401, 'Response is 401';
like $res->content, qr[is missing], 'Password2 is missing';

$test_user_data->{password2} = 'Something else';
Expand All @@ -57,7 +57,7 @@ $res = $test->request(POST '/register',
);

ok $res, 'Got a response from /register';
is $res->code, 200, 'Response is 200';
is $res->code, 403, 'Response is 403';
like $res->content, qr[do not match], 'Passwords do not match'
or diag $res->content;

Expand Down

0 comments on commit e221156

Please sign in to comment.