From b5954e391e2697283f561e36b8d69a8394e5d469 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sun, 13 Dec 2015 12:32:36 -0800 Subject: [PATCH] Correct test to actually test not-found case. It was always going to pass no matter what the other way it was written. --- Supporters/t/Supporters.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Supporters/t/Supporters.t b/Supporters/t/Supporters.t index dfe0261..65c0d20 100644 --- a/Supporters/t/Supporters.t +++ b/Supporters/t/Supporters.t @@ -104,9 +104,9 @@ dies_ok { $sp->addEmailAddress($drapperId, 'drapper@ex@ample.org', 'work') } # Verify that the addressType wasn't added when the Email address is invalid # and the address type did not already exist. -my $val = $sp->dbh()->selectall_hashref("SELECT id FROM address_type WHERE name = 'work'", 'id'); +$val = $sp->dbh()->selectall_hashref("SELECT id, name FROM address_type WHERE name = 'work'", 'name'); -ok((not defined $val or not defined $val->{'id'}), +ok((not defined $val or not defined $val->{'name'}), "addEmailAddress: type is not added with email address is bad"); my $drapperEmailId;