diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-30 22:19:47 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-08-09 18:32:04 +0100 |
commit | 5633ecc489cef3cdc0e3e28a41973226a9d62c2d (patch) | |
tree | c1fa848e0d93d609f320b63247b934fa657f1779 /t/app/controller | |
parent | 6338f074049779543dcc61e87db0c3afe3a1d719 (diff) |
extra test for auto flagging
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/contact.t | 4 |
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'; } }; |