diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-17 18:14:26 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-17 18:14:26 +0100 |
commit | bcdaabb1938a948eeffae6cb5bbd42bc310efc5a (patch) | |
tree | baad346c47a9d624345141f8aedf0fbf304172d3 /t/app/controller | |
parent | 9c9d6f649c962bc5902809e3c652d757a6849525 (diff) |
perltidy
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/report_updates.t | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/t/app/controller/report_updates.t b/t/app/controller/report_updates.t index fca9a8063..466fa71c1 100644 --- a/t/app/controller/report_updates.t +++ b/t/app/controller/report_updates.t @@ -56,42 +56,44 @@ my $comment = FixMyStreet::App->model('DB::Comment')->find_or_create( problem_id => $report_id, name => 'Other User', mark_fixed => 'false', - text => 'This is some update text', - email => 'commenter@example.com', - state => 'confirmed', - confirmed => $dt->ymd . ' ' . $dt->hms, + text => 'This is some update text', + email => 'commenter@example.com', + state => 'confirmed', + confirmed => $dt->ymd . ' ' . $dt->hms, } ); my $comment_id = $comment->id; ok $comment, "created test update - $comment_id"; -for my $test ( +for my $test ( { - name => 'Other User', + name => 'Other User', mark_fixed => 'false', - mark_open => 'false', - meta => 'Posted by Other User at 15:47, Saturday 16 April 2011', + mark_open => 'false', + meta => 'Posted by Other User at 15:47, Saturday 16 April 2011', }, { - name => '', + name => '', mark_fixed => 'false', - mark_open => 'false', - meta => 'Posted anonymously at 15:47, Saturday 16 April 2011', + mark_open => 'false', + meta => 'Posted anonymously at 15:47, Saturday 16 April 2011', }, { - name => '', + name => '', mark_fixed => 'true', - mark_open => 'false', - meta => 'Posted anonymously at 15:47, Saturday 16 April 2011, marked as fixed', + mark_open => 'false', + meta => +'Posted anonymously at 15:47, Saturday 16 April 2011, marked as fixed', }, { - name => '', + name => '', mark_fixed => 'false', - mark_open => 'true', + mark_open => 'true', meta => 'Posted anonymously at 15:47, Saturday 16 April 2011, reopened', } -) { + ) +{ subtest "test update displayed" => sub { $comment->name( $test->{name} ); $comment->mark_fixed( $test->{mark_fixed} ); |