Don't link to self from element version pages
This commit is contained in:
parent
81c11988f5
commit
3a5c729865
4 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue