Lines 126-136
ok( !$hold->is_in_transit, 'The hold is not in transit' );
Link Here
|
126 |
|
126 |
|
127 |
# Test method is_cancelable |
127 |
# Test method is_cancelable |
128 |
$hold->found(undef); |
128 |
$hold->found(undef); |
129 |
ok( $hold->is_cancelable(), "Unfound hold is cancelable" ); |
129 |
is( $hold->is_cancelable, 1, "Unfound hold is cancelable" ); |
130 |
$hold->found('W'); |
130 |
$hold->found('W'); |
131 |
ok( $hold->is_cancelable, "Waiting hold is cancelable" ); |
131 |
is( $hold->is_cancelable, 0, "Waiting hold is not cancelable" ); |
132 |
$hold->found('T'); |
132 |
$hold->found('T'); |
133 |
ok( !$hold->is_cancelable, "In transit hold is not cancelable" ); |
133 |
is( $hold->is_cancelable, 0, "In transit hold is not cancelable" ); |
134 |
|
134 |
|
135 |
# Test method is_at_destination |
135 |
# Test method is_at_destination |
136 |
$hold->found(undef); |
136 |
$hold->found(undef); |
137 |
- |
|
|