From 4cb1a47d0368640b3e10f51d83b0ce8ea5dd953e Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 8 Mar 2019 13:45:03 -0300 Subject: [PATCH] Bug 22483: (follow-up) Fix wrong tests higlighted by bug Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/api/v1/patrons_password.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/api/v1/patrons_password.t b/t/db_dependent/api/v1/patrons_password.t index b704761c08..10b1821930 100644 --- a/t/db_dependent/api/v1/patrons_password.t +++ b/t/db_dependent/api/v1/patrons_password.t @@ -141,7 +141,7 @@ subtest 'set_public() (unprivileged user tests)' => sub { my $tx = $t->ua->build_tx( POST => "/api/v1/public/patrons/" - . $other_patron->id + . $patron->id . "/password" => json => { password => $new_password, password_repeated => $new_password, @@ -175,8 +175,8 @@ subtest 'set_public() (unprivileged user tests)' => sub { $tx->req->env( { REMOTE_ADDR => '127.0.0.1' } ); $t->request_ok($tx) ->status_is(403) - ->json_is({ - error => "Changing other patron's password is forbidden" + ->json_has({ + error => "Authorization failure. Missing required permission(s)." }); $tx = $t->ua->build_tx( -- 2.39.5