diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-07 06:11:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-07 06:11:02 +0300 |
commit | 66664611361dcfcbaf99cd7c6906b99bcb16becd (patch) | |
tree | 0b0c6b2266d5e6ea24e996cf7f5cf06ad523d9df /spec/requests/api | |
parent | 7e89568aa1b1c531aa34860fbd9e77d9e988b9b2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api')
-rw-r--r-- | spec/requests/api/task_completion_status_spec.rb | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/spec/requests/api/task_completion_status_spec.rb b/spec/requests/api/task_completion_status_spec.rb index 97ce858ba12..6cc1fb6c713 100644 --- a/spec/requests/api/task_completion_status_spec.rb +++ b/spec/requests/api/task_completion_status_spec.rb @@ -10,44 +10,44 @@ RSpec.describe 'task completion status response' do shared_examples 'taskable completion status provider' do |path| samples = [ - { - description: '', - expected_count: 0, - expected_completed_count: 0 - }, - { - description: 'Lorem ipsum', - expected_count: 0, - expected_completed_count: 0 - }, - { - description: %{- [ ] task 1 + { + description: '', + expected_count: 0, + expected_completed_count: 0 + }, + { + description: 'Lorem ipsum', + expected_count: 0, + expected_completed_count: 0 + }, + { + description: %{- [ ] task 1 - [x] task 2 }, - expected_count: 2, - expected_completed_count: 1 - }, - { - description: %{- [ ] task 1 + expected_count: 2, + expected_completed_count: 1 + }, + { + description: %{- [ ] task 1 - [ ] task 2 }, - expected_count: 2, - expected_completed_count: 0 - }, - { - description: %{- [x] task 1 + expected_count: 2, + expected_completed_count: 0 + }, + { + description: %{- [x] task 1 - [x] task 2 }, - expected_count: 2, - expected_completed_count: 2 - }, - { - description: %{- [ ] task 1}, - expected_count: 1, - expected_completed_count: 0 - }, - { - description: %{- [x] task 1}, - expected_count: 1, - expected_completed_count: 1 - } + expected_count: 2, + expected_completed_count: 2 + }, + { + description: %{- [ ] task 1}, + expected_count: 1, + expected_completed_count: 0 + }, + { + description: %{- [x] task 1}, + expected_count: 1, + expected_completed_count: 1 + } ] samples.each do |sample_data| context "with a description of #{sample_data[:description].inspect}" do |