diff options
author | Struan Donald <struan@exo.org.uk> | 2012-10-02 17:45:34 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-10-02 18:59:08 +0100 |
commit | 844a16a3c51d69e99ba322a055673364a2a9290d (patch) | |
tree | 2f3dc19c7944d471f9d5f5cb3d7fd45884faab1a /t/app/controller/report_updates.t | |
parent | f342b7933e94202935f91f3122e8dfbde75fe54b (diff) |
update tests with new statuses
Diffstat (limited to 't/app/controller/report_updates.t')
-rw-r--r-- | t/app/controller/report_updates.t | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/app/controller/report_updates.t b/t/app/controller/report_updates.t index 4c8a01cf1..e4cec5f9f 100644 --- a/t/app/controller/report_updates.t +++ b/t/app/controller/report_updates.t @@ -547,6 +547,7 @@ for my $test ( state => 'not responsible', }, state => 'not responsible', + meta => "not the council's responsibility" }, { desc => 'from authority user marks report as duplicate', @@ -559,6 +560,7 @@ for my $test ( state => 'duplicate', }, state => 'duplicate', + meta => 'duplicate report', }, { desc => 'from authority user marks report sent to two councils as fixed', @@ -601,7 +603,8 @@ 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'; + my $meta_state = $test->{meta} || $test->{fields}->{state}; + like $update_meta->[0], qr/marked as $meta_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'); |