Bug 12166: (QA follow-up) Update test for description

Update the relevant test to check for 'description eq title' as aposed
to the old 'description eq "Reserve Charge - title"'.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2019-04-09 09:19:16 +01:00 committed by Nick Clemens
parent a00e1467b9
commit bc5e84eedc

View file

@ -735,7 +735,7 @@ subtest 'ChargeReserveFee tests' => sub {
is( $line->borrowernumber, $patron->id , 'generated line belongs to the passed patron');
is( $line->amount, $fee , 'amount set correctly');
is( $line->amountoutstanding, $fee , 'amountoutstanding set correctly');
is( $line->description, "Reserve Charge - $title" , 'Hardcoded description is generated');
is( $line->description, "$title" , 'description is title of reserved item');
is( $line->branchcode, $library->id , "Library id is picked from userenv and stored correctly" );
};