diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-28 14:51:17 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-28 14:51:17 +0100 |
commit | 96da0c04218644450f141f20c1dee4247a0ed8fe (patch) | |
tree | 833e0aa9e3ea67f4775a97f4a4d46a11cd502b7a /t/app/controller | |
parent | f301d83e6bd7546b2f2a80067313dd17502581f8 (diff) |
correctly set mark_open/fixed in questionnaire generates updates
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/questionnaire.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/app/controller/questionnaire.t b/t/app/controller/questionnaire.t index ecb243709..af3b373ac 100644 --- a/t/app/controller/questionnaire.t +++ b/t/app/controller/questionnaire.t @@ -240,6 +240,16 @@ foreach my $test ( { problem_id => $report->id } ); is $c->text, $test->{fields}{update} || $test->{comment}; + if ( $result =~ /fixed/ ) { + ok $c->mark_fixed, 'comment marked as fixed'; + ok !$c->mark_open, 'comment not marked as open'; + } elsif ( $result eq 'confirmed' ) { + ok $c->mark_open, 'comment marked as open'; + ok !$c->mark_fixed, 'comment not marked as fixed'; + } elsif ( $result eq 'unknown' ) { + ok !$c->mark_open, 'comment not marked as open'; + ok !$c->mark_fixed, 'comment not marked as fixed'; + } } # Reset questionnaire for next test |