]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/browse_controller_test.rb
Merge remote-tracking branch 'upstream/pull/4463'
[rails.git] / test / controllers / browse_controller_test.rb
index 0709d544e8e938739bc00d4a19632d2b8d938ad0..2bb743636ce9d5f5845d0922ddf8a65c5eecf06a 100644 (file)
@@ -142,6 +142,15 @@ class BrowseControllerTest < ActionDispatch::IntegrationTest
     browse_check :changeset_path, changeset.id, "browse/changeset"
   end
 
+  def test_read_changeset_element_links
+    changeset = create(:changeset)
+    node = create(:node, :with_history, :changeset => changeset)
+
+    browse_check :changeset_path, changeset.id, "browse/changeset"
+    assert_dom "a[href='#{node_path node}']", :count => 1
+    assert_dom "a[href='#{old_node_path node, 1}']", :count => 1
+  end
+
   ##
   #  Methods to check redaction.
   #