diff --git a/Supporters/t/Supporters.t b/Supporters/t/Supporters.t index bb2e1f9..d4797cb 100644 --- a/Supporters/t/Supporters.t +++ b/Supporters/t/Supporters.t @@ -8,7 +8,7 @@ use strict; use warnings; -use Test::More tests => 242; +use Test::More tests => 241; use Test::Exception; use Sub::Override; use File::Temp qw/tempfile/; @@ -263,13 +263,6 @@ dies_ok { $sp->setPublicAck(0); } "setPublicAck: fails supporterId invali dies_ok { $sp->setPublicAck("String"); } "setPublicAck: fails supporterId is string"; dies_ok { $sp->setPublicAck(undef); } "setPublicAck: fails supporterId is undef"; -# Replace _verifyId() to always return true - -$overrideSub = Sub::Override->new( 'Supporters::_verifyId' => sub ($$) { return 1;} ); -dies_ok { $publicAckVal = $sp->setPublicAck(0); } - "setPublicAck: fails when rows are not returned but _verifyId() somehow passed"; -$overrideSub->restore; - is($sp->getPublicAck($olsonId), 0, "setPublicAck: 1 failed calls changed nothing."); is($sp->getPublicAck($drapperId), 1, "setPublicAck: 1 failed calls changed nothing."); is($sp->getPublicAck($sterlingId), undef, "setPublicAck: 1 failed calls changed nothing.");