]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/old_nodes_controller_test.rb
Don't link to self from element version pages
[rails.git] / test / controllers / old_nodes_controller_test.rb
index 80b8da946cfcf51f702587382af9cb851a790d5b..68a6c1f3efec417b2acbeddbfd7a77f8392a30f5 100644 (file)
@@ -14,6 +14,9 @@ class OldNodesControllerTest < ActionDispatch::IntegrationTest
     assert_response :success
     assert_template "old_nodes/show"
     assert_template :layout => "map"
+    assert_select "h4", /^Version/ do
+      assert_select "a[href='#{old_node_path node, 1}']", :count => 0
+    end
   end
 
   def test_not_found