Update short link test results

This commit is contained in:
Tom Hughes 2013-08-06 13:33:21 +01:00
parent 4a97b04179
commit e84ed734aa
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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