]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/old_relations_controller_test.rb
Don't link to self from element version pages
[rails.git] / test / controllers / old_relations_controller_test.rb
index 87ee50db47e6c1d48657c6e953354d18573afffc..2e791f227f586d1c669c52121fc5da3192784415 100644 (file)
@@ -14,6 +14,9 @@ class OldRelationsControllerTest < ActionDispatch::IntegrationTest
     assert_response :success
     assert_template "old_relations/show"
     assert_template :layout => "map"
     assert_response :success
     assert_template "old_relations/show"
     assert_template :layout => "map"
+    assert_select "h4", /^Version/ do
+      assert_select "a[href='#{old_relation_path relation, 1}']", :count => 0
+    end
   end
 
   def test_visible_with_members
   end
 
   def test_visible_with_members