X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a5d14a1815b26cbec356441876d533163e5de3b2..665bde6ccd209c88262b63d9224f9d5b95b2857d:/test/controllers/api/changesets_controller_test.rb diff --git a/test/controllers/api/changesets_controller_test.rb b/test/controllers/api/changesets_controller_test.rb index 40b8bc9f2..7f2cd0abb 100644 --- a/test/controllers/api/changesets_controller_test.rb +++ b/test/controllers/api/changesets_controller_test.rb @@ -1959,7 +1959,11 @@ module Api get changesets_path(:limit => "0") assert_response :bad_request - get changesets_path(:limit => "101") + get changesets_path(:limit => Settings.max_changeset_query_limit) + assert_response :success + assert_changesets [changeset5, changeset4, changeset3, changeset2, changeset1] + + get changesets_path(:limit => Settings.max_changeset_query_limit + 1) assert_response :bad_request end