aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2020-09-11 17:27:19 +0100
committerStruan Donald <struan@exo.org.uk>2020-09-14 09:34:38 +0100
commit1a3e36a5efcff2d0247729883e5edd0425216292 (patch)
tree5e3229e125c0422bf90286af0ac00d34569aa4ef /t/app/controller
parent342e235b916696da4ef7982885cefe0f8b069adf (diff)
do not use an invalid update state in a test
It's not possible to every have a comment where mark_fixed is true and the problem_state is 'fixed - council' so update the test accordingly.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_updates.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/app/controller/report_updates.t b/t/app/controller/report_updates.t
index 0b60ac02b..92cbed861 100644
--- a/t/app/controller/report_updates.t
+++ b/t/app/controller/report_updates.t
@@ -844,8 +844,9 @@ subtest "check comment with no status change has not status in meta" => sub {
$user->from_body( undef );
$user->update;
+ $report->update( { state => 'fixed - user' } );
my $comment = $report->comments->first;
- $comment->update( { mark_fixed => 1, problem_state => 'fixed - council' } );
+ $comment->update( { mark_fixed => 1, problem_state => 'fixed - user' } );
$mech->get_ok("/report/$report_id");
@@ -871,8 +872,8 @@ subtest "check comment with no status change has not status in meta" => sub {
my $update = pop @updates;
- is $report->state, 'fixed - council', 'correct report state';
- is $update->problem_state, 'fixed - council', 'correct update state';
+ is $report->state, 'fixed - user', 'correct report state';
+ is $update->problem_state, 'fixed - user', 'correct update state';
my $update_meta = $mech->extract_update_metas;
unlike $update_meta->[1], qr/State changed to/, 'update meta does not include state change';