X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b8f126bcf6d53417d49b9cdd933714421fb8925c..32c385e8d7dd55194de1904462afc73b38a1542e:/test/integration/short_links_test.rb diff --git a/test/integration/short_links_test.rb b/test/integration/short_links_test.rb index 6b85554e2..b36082cac 100644 --- a/test/integration/short_links_test.rb +++ b/test/integration/short_links_test.rb @@ -1,6 +1,6 @@ -require File.dirname(__FILE__) + '/../test_helper' +require 'test_helper' -class ShortLinksTest < ActionController::IntegrationTest +class ShortLinksTest < ActionDispatch::IntegrationTest ## # test the short link with various parameters and ensure they're # kept in the redirect. @@ -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