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