diff --git a/Supporters/lib/Supporters.pm b/Supporters/lib/Supporters.pm index dcd6294..c333abd 100644 --- a/Supporters/lib/Supporters.pm +++ b/Supporters/lib/Supporters.pm @@ -693,7 +693,7 @@ A hash reference, the following keys are considered: =back -Returns the id value of the request entry. +Returns the id value of the fulfillment entry. =cut diff --git a/Supporters/t/Supporters.t b/Supporters/t/Supporters.t index 109b6cc..9765d14 100644 --- a/Supporters/t/Supporters.t +++ b/Supporters/t/Supporters.t @@ -344,15 +344,15 @@ is($sp->getRequestType("does-not-exist"), undef, "fulfillRequest: requestType not created when fulfillRequest fails."); -my $val2; +my $lookedUpFulfillmentId; -lives_ok { $val2 = $sp->fulfillRequest( { supporterId => $drapperId, +lives_ok { $lookedUpFulfillmentId = $sp->fulfillRequest( { supporterId => $drapperId, requestType => "t-shirt-small-only", who => 'peggy', how => "left in his office." }); } "fulfillRequest: attempt to fulfill an already-fulfill request does not die ..."; -is_deeply($val2, $val, - "fulfillRequest: ... but, rather, returns the same values from the previous fulfillRequest() call."); +is($lookedUpFulfillmentId, $fulfillRequestId, + "fulfillRequest: ... but, rather, returns the same value from the previous fulfillRequest() call."); =item getRequest