Correct these tests to actually test right thing.

They were die'ing, alright, but not for the right reason.
This commit is contained in:
Bradley M. Kuhn 2015-12-09 19:50:02 -08:00
parent a3aafac44a
commit 6d62cdeb6c

View file

@ -74,9 +74,9 @@ ok( (looks_like_number($id2) and $id2 > $id1),
=cut
dies_ok { $sp->_addEmailAdress(undef, 'drapper@example.org', 'paypal'); }
dies_ok { $sp->addEmailAddress(undef, 'drapper@example.org', 'paypal'); }
"_addEmailAdress: dies for undefined id";
dies_ok { $sp->_addEmailAdress("String", 'drapper@example.org', 'paypal'); }
dies_ok { $sp->addEmailAddress("String", 'drapper@example.org', 'paypal'); }
"_addEmailAdress: dies for non-numeric id";
=item addAddressType