aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-09-05 10:04:48 +0100
committerStruan Donald <struan@exo.org.uk>2012-09-05 10:04:48 +0100
commit174560660da697408db51d2cea617f27558f1b30 (patch)
tree6e305dcf38543314536f5317f62f2d3d7e8478a9 /t/app/controller
parent8e1336875a074adb7f906651233931e0ea4c22b7 (diff)
handle re-opening of problems via open311 service requests updates correctly
also small tweaks to display of update meta information
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_updates.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/app/controller/report_updates.t b/t/app/controller/report_updates.t
index cf6af16cb..c4c50f4d1 100644
--- a/t/app/controller/report_updates.t
+++ b/t/app/controller/report_updates.t
@@ -577,7 +577,10 @@ for my $test (
is $update->problem_state, $test->{state}, 'problem state set';
my $update_meta = $mech->extract_update_metas;
- like $update_meta->[0], qr/marked as $test->{fields}->{state}$/, 'update meta includes state change';
+ # setting it to confirmed shouldn't say anything
+ if ( $test->{fields}->{state} ne 'confirmed' ) {
+ like $update_meta->[0], qr/marked as $test->{fields}->{state}$/, 'update meta includes state change';
+ }
like $update_meta->[0], qr{Test User \(Westminster City Council\)}, 'update meta includes council name';
$mech->content_contains( 'Test User (<strong>Westminster City Council</strong>)', 'council name in bold');