diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-29 21:08:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-29 21:08:16 +0300 |
commit | 488e1b59feb4314b034636990bcc4e220e61f0ce (patch) | |
tree | 688df0d594f8a9c04bc32e8be43404260463a80f /spec/models | |
parent | 11f742d4e72a0b436d65161c5ef08ce9e19b8ebf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/merge_request_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index be93cc79c70..466485d1e5a 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -5174,6 +5174,16 @@ RSpec.describe MergeRequest, factory_default: :keep do end end + describe '#can_suggest_reviewers?' do + let_it_be(:merge_request) { build(:merge_request, :opened, project: project) } + + subject(:can_suggest_reviewers) { merge_request.can_suggest_reviewers? } + + it 'returns false' do + expect(can_suggest_reviewers).to be(false) + end + end + describe '#suggested_reviewer_users' do let_it_be(:merge_request) { build(:merge_request, project: project) } |