diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-17 10:55:26 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-17 10:55:26 +0100 |
commit | 202abd84b382816d7095929a8d4b85a395f21489 (patch) | |
tree | 9e0b84007dfe670b71052c4fec133f10911ca526 /t/app | |
parent | f8d743d74930d7632d00718be697c11a7c3581a7 (diff) |
replace more old template tags with TT ones
Diffstat (limited to 't/app')
-rw-r--r-- | t/app/controller/report_display.t | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/t/app/controller/report_display.t b/t/app/controller/report_display.t index 26b7db759..ee9172d11 100644 --- a/t/app/controller/report_display.t +++ b/t/app/controller/report_display.t @@ -105,10 +105,18 @@ subtest "test a good report" => sub { is $mech->extract_problem_meta, 'Reported by Test User at 15:47, Saturday 16 April 2011', 'correct problem meta information'; - $mech->content_contains( 'Test 2 Detail' ); - - my $update_form = $mech->form_name( 'updateForm' ); - is $update_form->value( 'fixed' ), undef, 'problem is not fixed'; + $mech->content_contains('Test 2 Detail'); + + my $update_form = $mech->form_name('updateForm'); + + my %fields = ( + name => '', + rznvy => '', + update => '', + add_alert => undef, + fixed => undef + ); + is $update_form->value($_), $fields{$_}, "$_ value" for keys %fields; }; foreach my $meta ( |