aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-09 17:11:11 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-09 17:11:11 +0100
commitfb26dda031a9409a1716c379d4a86327aa142dd7 (patch)
tree090c43814ed61b096f44e33035b3534a13b22a37 /t/app
parent535d43348eb062b4eb31bc37ae086d200bd921ab (diff)
Stop empty string warning, delete some test users, and use same n/a string as elsewhere.
Diffstat (limited to 't/app')
-rw-r--r--t/app/controller/alert_new.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/app/controller/alert_new.t b/t/app/controller/alert_new.t
index 6fc32acbf..5bf7e31dd 100644
--- a/t/app/controller/alert_new.t
+++ b/t/app/controller/alert_new.t
@@ -208,6 +208,7 @@ foreach my $test (
param1 => 2651,
param2 => 2651,
confirmed => 0,
+ delete => 1,
}
)
{
@@ -263,6 +264,10 @@ foreach my $test (
$mech->email_count_is( $test->{confirmed} ? 0 : 1 );
+ if ( $test->{delete} ) {
+ $mech->delete_user($user);
+ $mech->delete_user($alert_user);
+ }
};
}