Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2018-02-21 19:51:10 +0300
committerRobert Speicher <robert@gitlab.com>2018-02-21 19:51:10 +0300
commit94ac29f66d78e949b50e353c8ba4827bd33084ce (patch)
tree751730574b0a88822d555970f9a2db1fb684f2cc /spec
parent3487441b9a7058e143814a4fd64b4125a4fcc8a8 (diff)
parent0dafea8685f0376d4c474f7670a97d0b8e449767 (diff)
Merge branch 'add-pagination-commit-diffs' into 'master'
Add missing pagination on the commit diff endpoint Closes #43370 See merge request gitlab-org/gitlab-ce!17203
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/commits_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/commits_spec.rb b/spec/requests/api/commits_spec.rb
index 31959d28fee..ad3eec88952 100644
--- a/spec/requests/api/commits_spec.rb
+++ b/spec/requests/api/commits_spec.rb
@@ -698,6 +698,7 @@ describe API::Commits do
get api(route, current_user)
expect(response).to have_gitlab_http_status(200)
+ expect(response).to include_pagination_headers
expect(json_response.size).to be >= 1
expect(json_response.first.keys).to include 'diff'
end