aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/alert_new.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/alert_new.t')
-rw-r--r--t/app/controller/alert_new.t9
1 files changed, 7 insertions, 2 deletions
diff --git a/t/app/controller/alert_new.t b/t/app/controller/alert_new.t
index 7cbf6188a..4b23cb950 100644
--- a/t/app/controller/alert_new.t
+++ b/t/app/controller/alert_new.t
@@ -181,7 +181,7 @@ foreach my $test (
alert_type => $type,
parameter => $test->{param1},
parameter2 => $test->{param2},
- confirmed => 0,
+ confirmed => 1,
}
);
@@ -209,6 +209,8 @@ foreach my $test (
$mech->log_in_ok( $test->{email} );
+ $mech->clear_emails_ok;
+
my $alert;
if ($user) {
$alert = FixMyStreet::App->model('DB::Alert')->find(
@@ -237,11 +239,14 @@ foreach my $test (
alert_type => $type,
parameter => $test->{param1},
parameter2 => $test->{param2},
- confirmed => 0,
+ confirmed => 1,
}
);
ok $alert, 'New alert created with existing user';
+
+ $mech->email_count_is(0);
+
};
}