Commit forgotten test!

This commit is contained in:
Bradley M. Kuhn 2016-01-07 13:35:13 -08:00
parent c7d11b8593
commit 00da4c3cd8

View file

@ -845,6 +845,9 @@ foreach my $arg (qw/startDate endDate/) {
dies_ok { $sp->donorTotalGaveInPeriod(donorId => $drapperId, $arg => '2015-1-5'); } dies_ok { $sp->donorTotalGaveInPeriod(donorId => $drapperId, $arg => '2015-1-5'); }
"donorTotalGaveInPeriod(): dies with non ISO-8601 string in $arg"; "donorTotalGaveInPeriod(): dies with non ISO-8601 string in $arg";
} }
dies_ok { $sp->donorTotalGaveInPeriod(donorId => $drapperId, wrong => ''); }
"donorTotalGaveInPeriod(): dies if given an argument that is not recognized";
my $amount; my $amount;
lives_ok { $amount = $sp->donorTotalGaveInPeriod(donorId => $drapperId) } lives_ok { $amount = $sp->donorTotalGaveInPeriod(donorId => $drapperId) }