diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-08 09:09:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-08 09:09:59 +0300 |
commit | 93ea45e25a0cf3dfebd11b484e6967da6d95d4ab (patch) | |
tree | 1db6aa045ff0292cd998068afaed47068081d9f4 /spec/serializers | |
parent | e2deaee92032eb1162182bc9e0d553d0153c7d0e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/merge_request_user_entity_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/serializers/merge_request_user_entity_spec.rb b/spec/serializers/merge_request_user_entity_spec.rb index 026a229322e..7774c43ab9e 100644 --- a/spec/serializers/merge_request_user_entity_spec.rb +++ b/spec/serializers/merge_request_user_entity_spec.rb @@ -4,7 +4,7 @@ require 'spec_helper' RSpec.describe MergeRequestUserEntity do let_it_be(:user) { create(:user) } - let_it_be(:merge_request) { create(:merge_request) } + let_it_be(:merge_request) { create(:merge_request, assignees: [user]) } let(:request) { EntityRequest.new(project: merge_request.target_project, current_user: user) } @@ -18,7 +18,8 @@ RSpec.describe MergeRequestUserEntity do it 'exposes needed attributes' do is_expected.to include( :id, :name, :username, :state, :avatar_url, :web_url, - :can_merge, :can_update_merge_request, :reviewed, :approved + :can_merge, :can_update_merge_request, :reviewed, :approved, + :attention_required ) end @@ -56,6 +57,10 @@ RSpec.describe MergeRequestUserEntity do end end + context 'attention_required' do + it { is_expected.to include(attention_required: true ) } + end + describe 'performance' do let_it_be(:user_a) { create(:user) } let_it_be(:user_b) { create(:user) } |