diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-10-30 18:56:30 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-10-31 20:10:36 +0300 |
commit | 87444fb6eda755a0340ab2e38ad83bb8edc67f6f (patch) | |
tree | 77db423177d0f04d8090fce754592f0a9aebda4b /spec/controllers/projects | |
parent | fc892db6f02c992bef32bf994a694efd5205f61b (diff) |
Adds pagination to pipelines table in merge request page
Diffstat (limited to 'spec/controllers/projects')
-rw-r--r-- | spec/controllers/projects/commit_controller_spec.rb | 1 | ||||
-rw-r--r-- | spec/controllers/projects/merge_requests_controller_spec.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/projects/commit_controller_spec.rb b/spec/controllers/projects/commit_controller_spec.rb index 9e149bc4c3c..e34fdee62d6 100644 --- a/spec/controllers/projects/commit_controller_spec.rb +++ b/spec/controllers/projects/commit_controller_spec.rb @@ -356,6 +356,7 @@ describe Projects::CommitController do expect(response).to be_ok expect(JSON.parse(response.body)['pipelines']).not_to be_empty expect(JSON.parse(response.body)['count']['all']).to eq 1 + expect(response).to include_pagination_headers end end end diff --git a/spec/controllers/projects/merge_requests_controller_spec.rb b/spec/controllers/projects/merge_requests_controller_spec.rb index 7b0459e0325..d08cbfb134c 100644 --- a/spec/controllers/projects/merge_requests_controller_spec.rb +++ b/spec/controllers/projects/merge_requests_controller_spec.rb @@ -563,6 +563,7 @@ describe Projects::MergeRequestsController do it 'responds with serialized pipelines' do expect(json_response['pipelines']).not_to be_empty expect(json_response['count']['all']).to eq 1 + expect(response).to include_pagination_headers end end |