diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-05 15:09:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-05 15:09:31 +0300 |
commit | 64f7eb2b37aebbb713463b2f6971b13191c1b0db (patch) | |
tree | 186ce376859dc04055a20d87945556eec63acd68 /spec/serializers/merge_request_sidebar_extras_entity_spec.rb | |
parent | 315243f87739dd1edda2b75361f826abc91d4069 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/merge_request_sidebar_extras_entity_spec.rb')
-rw-r--r-- | spec/serializers/merge_request_sidebar_extras_entity_spec.rb | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/spec/serializers/merge_request_sidebar_extras_entity_spec.rb b/spec/serializers/merge_request_sidebar_extras_entity_spec.rb index 74e9956c8a0..58f860097c2 100644 --- a/spec/serializers/merge_request_sidebar_extras_entity_spec.rb +++ b/spec/serializers/merge_request_sidebar_extras_entity_spec.rb @@ -35,23 +35,11 @@ RSpec.describe MergeRequestSidebarExtrasEntity do end describe '#reviewers' do - context 'when merge_request_reviewers feature is disabled' do - it 'does not contain reviewers attributes' do - stub_feature_flags(merge_request_reviewers: false) - - expect(entity[:reviewers]).to be_nil - end - end - - context 'when merge_request_reviewers feature is enabled' do - it 'contains reviewers attributes' do - stub_feature_flags(merge_request_reviewers: true) - - expect(entity[:reviewers].count).to be 1 - expect(entity[:reviewers].first.keys).to include( - :id, :name, :username, :state, :avatar_url, :web_url, :can_merge - ) - end + it 'contains reviewers attributes' do + expect(entity[:reviewers].count).to be 1 + expect(entity[:reviewers].first.keys).to include( + :id, :name, :username, :state, :avatar_url, :web_url, :can_merge + ) end end end |