X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15e1459f25673ec7b59392cc21a7533e0f15f9d7..61aecd32a458ff57075938b855da0e0efa03b9dc:/test/controllers/changesets_controller_test.rb?ds=inline diff --git a/test/controllers/changesets_controller_test.rb b/test/controllers/changesets_controller_test.rb index 3d264181c..a486e4b5e 100644 --- a/test/controllers/changesets_controller_test.rb +++ b/test/controllers/changesets_controller_test.rb @@ -92,6 +92,15 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest check_index_result(changesets.last(20)) end + ## + # This should report an error + def test_index_invalid_xhr + %w[-1 0 fred].each do |id| + get history_path(:format => "html", :list => "1", :max_id => id) + assert_redirected_to :controller => :errors, :action => :bad_request + end + end + ## # This should display the last 20 changesets closed in a specific area def test_index_bbox