diff options
author | Struan Donald <struan@exo.org.uk> | 2012-09-04 09:56:50 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-09-04 09:56:50 +0100 |
commit | e2a72a4c6ba6be353a105cc765217ede314ee270 (patch) | |
tree | 26733d0eb9239e24c495e302e84205efab976f16 | |
parent | 5b90af6e79940d8de734d06d20ed82c52a50b56e (diff) |
check non public reports are included in front page stats
-rw-r--r-- | t/app/controller/index.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/app/controller/index.t b/t/app/controller/index.t index 52e8cbcd9..86d5e2d8c 100644 --- a/t/app/controller/index.t +++ b/t/app/controller/index.t @@ -62,11 +62,13 @@ is scalar @edinburgh_problems, 5, 'correct number of edinburgh problems created' $mech->get_ok('/'); $mech->content_contains('Front page Test 3 for 2651', 'problem to be marked non public visible'); +$mech->content_contains('5</big> reports recently', 'number of recent problems correct'); my $private = $edinburgh_problems[2]; ok $private->update( { non_public => 1 } ), 'problem marked non public'; $mech->get_ok('/'); $mech->content_lacks('Front page Test 3 for 2651', 'non public problem is not visible'); +$mech->content_contains('5</big> reports recently', 'non public problems listed in recent problems stats'); done_testing(); |