From 00da4c3cd892b46b99f396d09f49a4dc0839d119 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Thu, 7 Jan 2016 13:35:13 -0800 Subject: [PATCH] Commit forgotten test! --- Supporters/t/Supporters.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Supporters/t/Supporters.t b/Supporters/t/Supporters.t index d0f0794..10e6478 100644 --- a/Supporters/t/Supporters.t +++ b/Supporters/t/Supporters.t @@ -845,6 +845,9 @@ foreach my $arg (qw/startDate endDate/) { dies_ok { $sp->donorTotalGaveInPeriod(donorId => $drapperId, $arg => '2015-1-5'); } "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; lives_ok { $amount = $sp->donorTotalGaveInPeriod(donorId => $drapperId) }