From 4e8e4673918a311754c4c135f922e7ce24e22d0a 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 --- 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.21.0