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