From: Tom Hughes Date: Tue, 6 Aug 2013 12:33:21 +0000 (+0100) Subject: Update short link test results X-Git-Tag: live~5355 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/e84ed734aae9eea6f970f203bd28d8f698588b97 Update short link test results --- diff --git a/test/functional/site_controller_test.rb b/test/functional/site_controller_test.rb index 23e6c27a3..770f3e2b5 100644 --- a/test/functional/site_controller_test.rb +++ b/test/functional/site_controller_test.rb @@ -92,7 +92,7 @@ class SiteControllerTest < ActionController::TestCase def test_permalink get :permalink, :code => 'wBz3--' - assert_redirected_to :controller => :site, :action => 'index', :anchor => '3/4.8779296875/3.955078125' + assert_redirected_to :controller => :site, :action => 'index', :anchor => 'map=3/4.8779296875/3.955078125' end # Get the edit page diff --git a/test/integration/short_links_test.rb b/test/integration/short_links_test.rb index 6b85554e2..d4f6f8abc 100644 --- a/test/integration/short_links_test.rb +++ b/test/integration/short_links_test.rb @@ -13,7 +13,7 @@ class ShortLinksTest < ActionController::IntegrationTest # utility method to test short links def assert_short_link_redirect(short_link) lon, lat, zoom = ShortLink::decode(short_link) - anchor = "#{zoom}/#{lat}/#{lon}" + anchor = "map=#{zoom}/#{lat}/#{lon}" # test without marker get '/go/' + short_link