diff options
author | Alexandru Croitor <acroitor@gitlab.com> | 2019-05-17 12:46:33 +0300 |
---|---|---|
committer | Alexandru Croitor <acroitor@gitlab.com> | 2019-05-17 13:56:25 +0300 |
commit | 9ff6edf690423a284f4d0ad924ff2a9a4285eb50 (patch) | |
tree | 9b770e812bd923a664a0c2166935794dcd3dffb3 /spec/support | |
parent | f117c032ac6c414e6c1dfeab98184363c1f61608 (diff) |
Review updates and cleanup
* Cleaned issues and issues_statistics docs
* Renamed param with_labels_data to with_labels_details
* Added spec for N+1 check when retrieving labels from issue
* Refactoed CheckAssigneesCount validation class
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared_examples/requests/api/issues_shared_example_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/shared_examples/requests/api/issues_shared_example_spec.rb b/spec/support/shared_examples/requests/api/issues_shared_example_spec.rb index d1c8e2208a3..1133e95e44e 100644 --- a/spec/support/shared_examples/requests/api/issues_shared_example_spec.rb +++ b/spec/support/shared_examples/requests/api/issues_shared_example_spec.rb @@ -28,15 +28,15 @@ shared_examples 'labeled issues with labels and label_name params' do it_behaves_like 'returns label names' end - context 'when with_labels_data provided' do + context 'when with_labels_details provided' do context 'array of labeled issues when all labels match' do - let(:params) { { labels: "#{label.title},#{label_b.title},#{label_c.title}", with_labels_data: true } } + let(:params) { { labels: "#{label.title},#{label_b.title},#{label_c.title}", with_labels_details: true } } it_behaves_like 'returns basic label entity' end context 'array of labeled issues when all labels match with labels param as array' do - let(:params) { { labels: [label.title, label_b.title, label_c.title], with_labels_data: true } } + let(:params) { { labels: [label.title, label_b.title, label_c.title], with_labels_details: true } } it_behaves_like 'returns basic label entity' end |