aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/auth.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-03-21 18:26:39 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-03-23 18:48:56 +0000
commit6713d6a4cd04a6e91743f687347367f070538e63 (patch)
treee74ca4f6044c79b30046dc9bb9d015e9f7d93548 /t/app/controller/auth.t
parent8bdf783d5d18dde25b4d2f8309a42c6096cf09d3 (diff)
Make sure all MapIt tests can run offline.
Diffstat (limited to 't/app/controller/auth.t')
-rw-r--r--t/app/controller/auth.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/app/controller/auth.t b/t/app/controller/auth.t
index 22ade6f4b..3a11cfc4a 100644
--- a/t/app/controller/auth.t
+++ b/t/app/controller/auth.t
@@ -56,6 +56,10 @@ for my $test (
is_deeply $mech->page_errors, [ $error_message ], 'errors match';
}
+# Email address parsing should pass from here
+my $resolver = Test::MockModule->new('Email::Valid');
+$resolver->mock('address', sub { $_[1] });
+
# create a new account
$mech->clear_emails_ok;
$mech->get_ok('/auth');