aboutsummaryrefslogtreecommitdiffstats
path: root/t/Page.t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-06 12:32:43 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-06 12:32:43 +0100
commit75fe00034fc5be24e2222cf116656fc350b98e67 (patch)
treedf8d29092083025a818688d496e26913ed2a3a7f /t/Page.t
parentc297e65b2fb0cf61c5d6a3b2caa477c473fccd96 (diff)
parent1aa62d33e4e038e9edf994084603086eff26b6ac (diff)
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 't/Page.t')
-rwxr-xr-xt/Page.t25
1 files changed, 1 insertions, 24 deletions
diff --git a/t/Page.t b/t/Page.t
index 20af92590..5e55b8e1f 100755
--- a/t/Page.t
+++ b/t/Page.t
@@ -11,7 +11,7 @@
use strict;
use warnings;
-use Test::More tests => 13;
+use Test::More tests => 8;
use Test::Exception;
use FindBin;
@@ -36,28 +36,6 @@ sub set_lang($) {
mySociety::Locale::change();
}
-sub test_geocode_string() {
- my %params = ();
- my $q = new MockQuery( 'nosite', \%params );
-
- # geocode a straightforward string, expect success
- my ( $latitude, $longitude, $error ) =
- FixMyStreet::Geocode::string( 'Buckingham Palace', $q );
- is( $latitude, 51.4949261, 'example easting generated' );
- is( $longitude, -0.1461924, 'example northing generated' );
- is( $error, undef, 'should not generate error for simple example' );
-
- # expect a failure message for Northern Ireland
- ( $latitude, $longitude, $error ) =
- FixMyStreet::Geocode::string( 'Falls Road, Belfast', $q );
- is(
- $error,
- "We do not cover Northern Ireland, I'm afraid, as our licence doesn't "
- . "include any maps for the region.",
- 'error message produced for NI location'
- );
-}
-
sub test_header() {
my $q = mock_query();
my $html;
@@ -104,4 +82,3 @@ sub test_base_url_with_lang {
ok(test_base_url_with_lang() == 1, 'Ran all tests for base_url_with_lang');
ok(test_footer() == 1, 'Ran all tests for the footer function');
ok(test_header() == 1, 'Ran all tests for the header function');
-ok(test_geocode_string() == 1, 'Ran all tests for the geocode_string function');