aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-30 22:19:47 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-08-09 18:32:04 +0100
commit5633ecc489cef3cdc0e3e28a41973226a9d62c2d (patch)
treec1fa848e0d93d609f320b63247b934fa657f1779 /t/app/controller
parent6338f074049779543dcc61e87db0c3afe3a1d719 (diff)
extra test for auto flagging
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/contact.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t
index a69a56ac4..86b845eb3 100644
--- a/t/app/controller/contact.t
+++ b/t/app/controller/contact.t
@@ -271,9 +271,11 @@ for my $test (
like $email->body, qr/Complaint about report $problem_id/, 'reporting a report'
if $test->{fields}{id};
+ $problem_main->discard_changes;
if ( $problem_id ) {
- $problem_main->discard_changes;
ok $problem_main->flagged, 'problem flagged';
+ } else {
+ ok !$problem_main->flagged, 'problem not flagged';
}
};