X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/56600b29315c9b6902964f7f4742588e6cd4ee55..0dae690c06fd32a03cea3d45c53f52d29439e4da:/test/controllers/changesets_controller_test.rb diff --git a/test/controllers/changesets_controller_test.rb b/test/controllers/changesets_controller_test.rb index ae5a28021..32a4e4f70 100644 --- a/test/controllers/changesets_controller_test.rb +++ b/test/controllers/changesets_controller_test.rb @@ -266,6 +266,7 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest assert_dom "p", :text => "tested-changeset-comment" assert_dom "li#c#{changeset_comment.id}" do assert_dom "> small", :text => /^Comment from #{commenting_user.display_name}/ + assert_dom "a[href='#{user_path(commenting_user)}']" end end @@ -316,6 +317,15 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest end end + def test_show_adjacent_changesets + user = create(:user) + changesets = create_list(:changeset, 3, :user => user) + + sidebar_browse_check :changeset_path, changesets[1].id, "changesets/show" + assert_dom "a[href='#{changeset_path changesets[0]}']", :count => 1 + assert_dom "a[href='#{changeset_path changesets[2]}']", :count => 1 + end + ## # This should display the last 20 non-empty changesets def test_feed