diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-16 16:41:45 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-16 16:41:45 +0100 |
commit | 44cdd0e57a323c7d1faf2e1fe4ad3bb473f70c92 (patch) | |
tree | 69f335efbd305bdaf9d6096f390243cc4e85da54 /t/app | |
parent | b6c9caf3d3925ab32d6a207754cfbe5979fb218f (diff) |
few more tests for correct problem display
Diffstat (limited to 't/app')
-rw-r--r-- | t/app/controller/report_display.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/app/controller/report_display.t b/t/app/controller/report_display.t index 8a0bfb4c3..6fadd6b9b 100644 --- a/t/app/controller/report_display.t +++ b/t/app/controller/report_display.t @@ -32,7 +32,7 @@ my $report = FixMyStreet::App->model('DB::Problem')->find_or_create( areas => ',105255,11806,11828,2247,2504,', category => 'Other', title => 'Test 2', - detail => 'Test 2', + detail => 'Test 2 Detail', used_map => 't', name => 'Test User', anonymous => 'f', @@ -101,9 +101,11 @@ subtest "change report to hidden and check for 410 status" => sub { subtest "test a good report" => sub { $mech->get_ok("/report/$report_id"); is $mech->uri->path, "/report/$report_id", "at /report/$report_id"; + is $mech->extract_problem_title, 'Test 2', 'problem title'; 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' ); }; foreach my $meta ( |