Ue self->{dbname} if available.
authorGreg Sabino Mullane <[email protected]>
Wed, 22 Apr 2009 20:33:04 +0000 (16:33 -0400)
committerGreg Sabino Mullane <[email protected]>
Wed, 22 Apr 2009 20:33:04 +0000 (16:33 -0400)
t/CP_Testing.pm

index e387220c75d17b53e661174b1d7b0f89c62b61a3..d617796b249b01b6d3b256d0c00c7e2a99aaa51f 100644 (file)
@@ -34,7 +34,7 @@ sub test_database_handle {
 
        my $self = shift;
        my $arg = shift || {};
-       $arg->{dbname} ||= 'postgres';
+       $arg->{dbname} ||= $self->{dbname} || 'postgres';
 
        ref $arg eq 'HASH' or die qq{Must pass a hashref (or nothing) to test_database_handle\n};