aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/admin/stats.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-01-25 19:40:24 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-01-31 11:18:54 +0000
commit2f8e3f7b86650d2b05b346615ac9f5fb7e8dcdb5 (patch)
tree4e81deb311831929d02c0486a67d8fc6c177b2b6 /t/app/controller/admin/stats.t
parent604873e402188986f9662aad5ab6d3fec989274f (diff)
Split up admin test file into many separate files.
Diffstat (limited to 't/app/controller/admin/stats.t')
-rw-r--r--t/app/controller/admin/stats.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/app/controller/admin/stats.t b/t/app/controller/admin/stats.t
new file mode 100644
index 000000000..dae51d31f
--- /dev/null
+++ b/t/app/controller/admin/stats.t
@@ -0,0 +1,12 @@
+use FixMyStreet::TestMech;
+
+my $mech = FixMyStreet::TestMech->new;
+my $superuser = $mech->create_user_ok('superuser@example.com', name => 'Super User', is_superuser => 1);
+
+subtest "smoke view some stats pages" => sub {
+ $mech->log_in_ok( $superuser->email );
+ $mech->get_ok('/admin/stats/fix-rate');
+ $mech->get_ok('/admin/stats/questionnaire');
+};
+
+done_testing();