LP#1640153 Fix abort-transit-copy-status.t perl test. user/csharp/lp1640153_fix_abort_transit_copy_test
authorChris Sharp <csharp@georgialibraries.org>
Tue, 8 Nov 2016 01:06:03 +0000 (20:06 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 8 Nov 2016 12:32:22 +0000 (07:32 -0500)
Fixes added by bug 1613374 changed the behavior of canceled
transits so that the test written for bug 1306666 stopped working.
Accounting for the new "Canceled Transit" status fixes the test.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/perlmods/live_t/19-lp1306666-abort-transit-copy-status.t

index fdf47d0..699716c 100644 (file)
@@ -196,7 +196,7 @@ $copy = $apputils->simplereq(
     $authtoken[0],
     $copy->id()
 );
-is($copy->status(), OILS_COPY_STATUS_RESHELVING, 'Copy reshelving');
+is($copy->status(), OILS_COPY_STATUS_CANCELED_TRANSIT, 'Copy in Canceled Transit status');
 
 # Check copy in at BR1
 $checkin = $apputils->simplereq(
@@ -414,7 +414,7 @@ $copy = $apputils->simplereq(
     $authtoken[0],
     $copy->id()
 );
-is($copy->status(), OILS_COPY_STATUS_RESHELVING, 'Copy is reshelving after return transit abort');
+is($copy->status(), OILS_COPY_STATUS_CANCELED_TRANSIT, 'Copy is in Canceled Transit status');
 
 # Logout at BR1.
 $script->logout($authtoken[0]);