diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 15:11:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 15:11:03 +0300 |
commit | 027f19b39c73b3b98e7cf305fead871626e8b717 (patch) | |
tree | d97ff241c76a5655f8f58444ccf76695b1b89bcf /spec/workers/process_commit_worker_spec.rb | |
parent | a7b422860c90eecd1b98845d234a8347686fbdcf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/process_commit_worker_spec.rb')
-rw-r--r-- | spec/workers/process_commit_worker_spec.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/workers/process_commit_worker_spec.rb b/spec/workers/process_commit_worker_spec.rb index a445db3a276..01c44399b0c 100644 --- a/spec/workers/process_commit_worker_spec.rb +++ b/spec/workers/process_commit_worker_spec.rb @@ -120,34 +120,6 @@ RSpec.describe ProcessCommitWorker do worker.close_issues(project, user, user, commit, [issue]) end.to change(Issues::CloseWorker.jobs, :size).by(1) end - - context 'when process_issue_closure_in_background flag is disabled' do - before do - stub_feature_flags(process_issue_closure_in_background: false) - end - - context 'when the user can update the issues' do - it 'closes the issues' do - worker.close_issues(project, user, user, commit, [issue]) - - issue.reload - - expect(issue.closed?).to eq(true) - end - end - - context 'when the user can not update the issues' do - it 'does not close the issues' do - other_user = create(:user) - - worker.close_issues(project, other_user, other_user, commit, [issue]) - - issue.reload - - expect(issue.closed?).to eq(false) - end - end - end end describe '#update_issue_metrics', :clean_gitlab_redis_cache do |