diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-17 18:18:21 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-17 18:18:21 +0100 |
commit | 35f1983f535f0d9208525aa1d1369ebf35d8097f (patch) | |
tree | 028cae6f06a2344a129932efebf9d2f8bf1142b7 /t/app/controller/report_display.t | |
parent | bcdaabb1938a948eeffae6cb5bbd42bc310efc5a (diff) |
actually compare the problem meta information in the tests
Diffstat (limited to 't/app/controller/report_display.t')
-rw-r--r-- | t/app/controller/report_display.t | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/t/app/controller/report_display.t b/t/app/controller/report_display.t index ee9172d11..2afff21dd 100644 --- a/t/app/controller/report_display.t +++ b/t/app/controller/report_display.t @@ -154,21 +154,21 @@ foreach my $meta ( meta => 'Reported anonymously at 15:47, Saturday 16 April 2011' }, { - anonymous => 'f', + anonymous => 't', category => 'Roads', service => '', meta => 'Reported in the Roads category anonymously at 15:47, Saturday 16 April 2011' }, { - anonymous => 'f', + anonymous => 't', category => '', service => 'Transport service', meta => 'Reported by Transport service anonymously at 15:47, Saturday 16 April 2011' }, { - anonymous => 'f', + anonymous => 't', category => 'Roads', service => 'Transport service', meta => @@ -182,6 +182,8 @@ foreach my $meta ( $report->update; subtest "test correct problem meta information" => sub { $mech->get_ok("/report/$report_id"); + + is $mech->extract_problem_meta, $meta->{meta}; }; } |