From 02d06df3644d53aaa2611882491230fc28d843bd Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 20 Apr 2012 16:04:57 +0100 Subject: Have a whole fake mapit (for #182) that works if MAPIT_URL is set accordingly. Setting MAPIT_URL to .../fakemapit/ will then return one area, ID 161 and type ZZZ, whatever co-ordinate it is given. This means the default area type is now ZZZ, the UK specific types are moved into the UK cobrands, and the tests updated accordingly to still function (they assume UK-ness a lot, so probably need an ALLOWED_COBRANDS entry of "fixmystreet: 'localhost'" and for your host's domain to show fixmystreet too). --- t/app/controller/auth.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/app/controller/auth.t') diff --git a/t/app/controller/auth.t b/t/app/controller/auth.t index efc5e60e6..5c6a4ef09 100644 --- a/t/app/controller/auth.t +++ b/t/app/controller/auth.t @@ -33,7 +33,7 @@ for my $test ( my ( $email, $error_message ) = @$test; pass "--- testing bad email '$email' gives error '$error_message'"; $mech->get_ok('/auth'); - is_deeply $mech->form_errors, [], 'no errors initially'; + is_deeply $mech->page_errors, [], 'no errors initially'; $mech->submit_form_ok( { form_name => 'general_auth', @@ -43,7 +43,7 @@ for my $test ( "try to create an account with email '$email'" ); is $mech->uri->path, '/auth', "still on auth page"; - is_deeply $mech->form_errors, [ $error_message ], 'no errors initially'; + is_deeply $mech->page_errors, [ $error_message ], 'no errors initially'; } # create a new account -- cgit v1.2.3