Lines 373-379
subtest 'claim*' => sub {
Link Here
|
373 |
my $claim_1 = $order->claim; |
373 |
my $claim_1 = $order->claim; |
374 |
my $claim_2 = $order->claim; |
374 |
my $claim_2 = $order->claim; |
375 |
|
375 |
|
376 |
$claim_2->claimed_on($now->clone->subtract(days => 1))->store; |
376 |
$claim_1->claimed_on($now->clone->subtract(days => 1))->store; |
|
|
377 |
$claim_2->claimed_on($now)->store; |
377 |
|
378 |
|
378 |
is( $order->claims->count, 2, '->claims should return the correct number of claims'); |
379 |
is( $order->claims->count, 2, '->claims should return the correct number of claims'); |
379 |
is( $order->claims_count, 2, '->claims_count should return the correct number of claims'); |
380 |
is( $order->claims_count, 2, '->claims_count should return the correct number of claims'); |
380 |
- |
|
|