]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api/changesets_controller_test.rb
Merge remote-tracking branch 'upstream/pull/4145'
[rails.git] / test / controllers / api / changesets_controller_test.rb
index 40b8bc9f280e72ba4f0110d136dd56e6eb99adea..7f2cd0abb35c908d957835d12833c7648a470d57 100644 (file)
@@ -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