Don't link to self from element version pages

This commit is contained in:
Anton Khorev 2024-01-17 03:34:42 +03:00
parent 81c11988f5
commit 3a5c729865
4 changed files with 10 additions and 1 deletions

View 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