diff options
author | Struan Donald <struan@exo.org.uk> | 2012-09-04 10:18:13 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-09-04 10:18:13 +0100 |
commit | 982357e692dc8e031bba765f333784c10dd6ec1e (patch) | |
tree | d5ec06f17072a28652a50a7a8d9d0df8e14dc60c /t/app/controller | |
parent | e2a72a4c6ba6be353a105cc765217ede314ee270 (diff) |
add in some test descriptions
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/report_new.t | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 0c9495357..2e7e60f75 100644 --- a/t/app/controller/report_new.t +++ b/t/app/controller/report_new.t @@ -841,12 +841,11 @@ subtest "test report creation for a category that is non public" => sub { # confirm token $mech->get_ok($url); $report->discard_changes; - is $report->state, 'confirmed', "Report is now confirmed"; - $mech->get_ok( '/report/' . $report->id ); + is $report->state, 'confirmed', "Report is now confirmed"; - # user is logged in $mech->logged_in_ok; + $mech->get_ok( '/report/' . $report->id, 'user can see own report' ); $mech->log_out_ok; ok $mech->get("/report/" . $report->id), "fetched report"; |