X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/18899f2867c85ea4bff8ecb188f57768300b4f8d..4ed85dc8db8c6587afa719bb6771b5303117e6e1:/test/controllers/browse_controller_test.rb?ds=inline diff --git a/test/controllers/browse_controller_test.rb b/test/controllers/browse_controller_test.rb index 7df246c57..1023d76ae 100644 --- a/test/controllers/browse_controller_test.rb +++ b/test/controllers/browse_controller_test.rb @@ -156,6 +156,15 @@ class BrowseControllerTest < ActionDispatch::IntegrationTest assert_select "div.changeset-comments ul li", :count => 4 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. #