aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/alert.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-04 10:32:06 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-04 10:32:06 +0000
commit528653016c8f4a95634fd83ca4b99b969b7d8937 (patch)
tree9a52a1b229948de3ada46f48d7c1be8c3089f8b5 /t/app/controller/alert.t
parent03325658ab5c2135bc4e0f9b8af0ffe9761ec0e6 (diff)
Use FixMyStreet TestMech child, so has access to its functions.
Diffstat (limited to 't/app/controller/alert.t')
-rw-r--r--t/app/controller/alert.t7
1 files changed, 2 insertions, 5 deletions
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t
index 32283134d..847aa1a17 100644
--- a/t/app/controller/alert.t
+++ b/t/app/controller/alert.t
@@ -2,11 +2,8 @@ use strict;
use warnings;
use Test::More;
-
-use Catalyst::Test 'FixMyStreet::App';
-use Test::WWW::Mechanize::Catalyst 'FixMyStreet::App';
-
-ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
+use FixMyStreet::TestMech;
+my $mech = FixMyStreet::TestMech->new;
# check that we can get the page
$mech->get_ok('/alert');