X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f222c49dd60ea505f2c1631efa02fbd9f0f5667..88e72be5b1ca6c25395d30a82d9624ebb2af2b0b:/test/controllers/old_ways_controller_test.rb diff --git a/test/controllers/old_ways_controller_test.rb b/test/controllers/old_ways_controller_test.rb index 897bdba1f..f32fdde77 100644 --- a/test/controllers/old_ways_controller_test.rb +++ b/test/controllers/old_ways_controller_test.rb @@ -14,6 +14,10 @@ class OldWaysControllerTest < ActionDispatch::IntegrationTest assert_response :success assert_template "old_ways/show" assert_template :layout => "map" + assert_select "h4", /^Version/ do + assert_select "a[href='#{old_way_path way, 1}']", :count => 0 + end + assert_select "a[href='#{way_version_path way, 1}']", :count => 1 end def test_visible_with_shared_nodes