diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-05-07 18:03:28 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-05-07 18:03:28 +0100 |
commit | 952e759f17d2920cca8620fb987947415bdb5898 (patch) | |
tree | 454bb0bc01e65ab205056f2e8d895b4e227c8b09 /t/map | |
parent | 408d9c08e172c0a6023a15f786c534839a2c56c9 (diff) |
Update some tests to work around small changes in some underlying modules.
Diffstat (limited to 't/map')
-rw-r--r-- | t/map/tilma/original.t | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/t/map/tilma/original.t b/t/map/tilma/original.t index 72cde5f9f..9e296686d 100644 --- a/t/map/tilma/original.t +++ b/t/map/tilma/original.t @@ -9,16 +9,14 @@ use FixMyStreet::TestMech; use DateTime; use mySociety::Locale; +use Catalyst::Test 'FixMyStreet::App'; + my $mech = FixMyStreet::TestMech->new; mySociety::Locale::gettext_domain('FixMyStreet'); FixMyStreet::Map::set_map_class(); -my $r = Catalyst::Request->new( { base => URI->new('/'), uri => URI->new('http://fixmystreet.com/test'), parameters => { bbox => '-7.6,49.7,-7.5,49.8' } } ); - -my $c = FixMyStreet::App->new( { - request => $r, -}); +my $c = ctx_request('http://fixmystreet.com/test?bbox=-7.6,49.7,-7.5,49.8'); $mech->delete_user('test@example.com'); my $user = |