diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-06-06 13:43:20 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-06-06 13:56:30 +0100 |
commit | 64aebf5ce25a40c841cabd8d484f7434eb0f0e75 (patch) | |
tree | 8b37b7827df384b6da8d08241ce7b466d3743a9a /t/open311 | |
parent | 01607134f1225f73a19deb001d2ccc9fcf6c58d5 (diff) |
Use problem_state column rather than mark_fixed for updates from council.
Diffstat (limited to 't/open311')
-rw-r--r-- | t/open311/getservicerequestupdates.t | 11 |
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'; }; |