aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/page_not_found.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/page_not_found.t')
-rw-r--r--t/app/controller/page_not_found.t11
1 files changed, 4 insertions, 7 deletions
diff --git a/t/app/controller/page_not_found.t b/t/app/controller/page_not_found.t
index 3c2bc3c3d..30a24df09 100644
--- a/t/app/controller/page_not_found.t
+++ b/t/app/controller/page_not_found.t
@@ -1,11 +1,6 @@
-use strict;
-use warnings;
+use FixMyStreet::TestMech;
-use Test::More tests => 4;
-
-use Test::WWW::Mechanize::Catalyst 'FixMyStreet::App';
-
-my $mech = Test::WWW::Mechanize::Catalyst->new;
+my $mech = FixMyStreet::TestMech->new;
# homepage ok
$mech->get_ok('/');
@@ -16,3 +11,5 @@ my $res = $mech->get($path_to_404);
ok !$res->is_success(), "want a bad response";
is $res->code, 404, "got 404";
$mech->content_contains($path_to_404);
+
+done_testing();