]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/old_nodes_controller_test.rb
Add links to api element version xml downloads
[rails.git] / test / controllers / old_nodes_controller_test.rb
index 80b8da946cfcf51f702587382af9cb851a790d5b..2e27983d037132e85c75be1286d7123057bcbaa4 100644 (file)
@@ -14,6 +14,10 @@ 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
+    assert_select "a[href='#{node_version_path node, 1}']", :count => 1
   end
 
   def test_not_found