Also verify it's a HASH reftype.
This commit is contained in:
parent
2950067c63
commit
159d3d6609
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ use warnings;
|
||||||
use Test::More tests => 55;
|
use Test::More tests => 55;
|
||||||
use Test::Exception;
|
use Test::Exception;
|
||||||
|
|
||||||
use Scalar::Util qw(looks_like_number);
|
use Scalar::Util qw(looks_like_number reftype);
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ $tempDBH = reopen_test_dbh();
|
||||||
|
|
||||||
$val = $tempDBH->selectall_hashref("SELECT id FROM supporter;", 'id');
|
$val = $tempDBH->selectall_hashref("SELECT id FROM supporter;", 'id');
|
||||||
|
|
||||||
ok( (defined $val and keys(%{$val}) == 0),
|
ok( (defined $val and reftype $val eq "HASH" and keys(%{$val}) == 0),
|
||||||
"addSupporter: fails if email_address given but email cannot be inserted");
|
"addSupporter: fails if email_address given but email cannot be inserted");
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue