aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2012-06-25 14:33:57 +0100
committerDave Whiteland <dave@mysociety.org>2012-06-25 14:33:57 +0100
commitf9fe02f91ac72ea2954ee68a5f32d96a237fcd67 (patch)
treef91d63ab3d6b9cd3555587090a541c870ecd3363 /t/open311
parent67da8efc720d2d0bd22bd9fe8655b7e983b35bb4 (diff)
parent45b3040884d7089e7d8c6f4acccd657b91c92a04 (diff)
Merge branch 'master' into fmb-read-only
Conflicts: .gitignore bin/make_css perllib/FixMyStreet/Cobrand/FixMyStreet.pm
Diffstat (limited to 't/open311')
-rw-r--r--t/open311/getservicerequestupdates.t11
1 files changed, 8 insertions, 3 deletions
diff --git a/t/open311/getservicerequestupdates.t b/t/open311/getservicerequestupdates.t
index 92d03e385..7ec8d5ae0 100644
--- a/t/open311/getservicerequestupdates.t
+++ b/t/open311/getservicerequestupdates.t
@@ -113,6 +113,7 @@ for my $test (
close_comment => 0,
mark_fixed=> 0,
mark_open => 0,
+ problem_state => undef,
end_state => 'confirmed',
},
{
@@ -122,8 +123,9 @@ for my $test (
external_id => 638344,
start_state => 'confirmed',
close_comment => 1,
- mark_fixed=> 1,
+ mark_fixed=> 0,
mark_open => 0,
+ problem_state => 'fixed - council',
end_state => 'fixed - council',
},
{
@@ -134,7 +136,8 @@ for my $test (
start_state => 'fixed - user',
close_comment => 0,
mark_fixed => 0,
- mark_open => 1,
+ mark_open => 0,
+ problem_state => 'confirmed',
end_state => 'confirmed',
},
{
@@ -145,7 +148,8 @@ for my $test (
start_state => 'closed',
close_comment => 0,
mark_fixed => 0,
- mark_open => 1,
+ mark_open => 0,
+ problem_state => 'confirmed',
end_state => 'confirmed',
},
{
@@ -185,6 +189,7 @@ for my $test (
ok $c, 'comment exists';
is $c->text, $test->{description}, 'text correct';
is $c->mark_fixed, $test->{mark_fixed}, 'mark_closed correct';
+ is $c->problem_state, $test->{problem_state}, 'problem_state correct';
is $c->mark_open, $test->{mark_open}, 'mark_open correct';
is $problem->state, $test->{end_state}, 'correct problem state';
};