diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-09-21 23:00:53 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-09-30 21:13:33 +0100 |
commit | 4e6d1c359c94b0aa864bc48f28a8962113a47629 (patch) | |
tree | 67ba615aac2413cc06cde4738455461c21ff1b0d /t/app/controller/auth_phone.t | |
parent | 57f52190fc1edb515563d524b179906a3006ba78 (diff) |
Add ability to confirm reports/updates via text.
Diffstat (limited to 't/app/controller/auth_phone.t')
-rw-r--r-- | t/app/controller/auth_phone.t | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/app/controller/auth_phone.t b/t/app/controller/auth_phone.t index a2f8f9cac..8673f5c62 100644 --- a/t/app/controller/auth_phone.t +++ b/t/app/controller/auth_phone.t @@ -56,8 +56,7 @@ subtest 'Log in using mobile, by text' => sub { }, 'submit incorrect code'); $mech->content_contains('Try again'); - my $text = shift @{$twilio->texts}; - my ($code) = $text->{Body} =~ /(\d+)/; + my $code = $twilio->get_text_code; $mech->submit_form_ok({ with_fields => { code => $code } }, 'submit correct code'); |