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_basic_entity_spec.rb | |
parent | 315243f87739dd1edda2b75361f826abc91d4069 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/merge_request_basic_entity_spec.rb')
-rw-r--r-- | spec/serializers/merge_request_basic_entity_spec.rb | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/spec/serializers/merge_request_basic_entity_spec.rb b/spec/serializers/merge_request_basic_entity_spec.rb index 4a8bcd72d9c..7aa1f47fda5 100644 --- a/spec/serializers/merge_request_basic_entity_spec.rb +++ b/spec/serializers/merge_request_basic_entity_spec.rb @@ -20,23 +20,11 @@ RSpec.describe MergeRequestBasicEntity do let(:params) { { reviewers: [reviewer] } } let(:reviewer) { build(:user) } - context 'when merge_request_reviewers feature is disabled' do - it 'does not contain assignees attributes' do - stub_feature_flags(merge_request_reviewers: false) - - expect(subject[: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(subject[:reviewers].count).to be 1 - expect(subject[:reviewers].first.keys).to include( - :id, :name, :username, :state, :avatar_url, :web_url - ) - end + it 'contains reviewers attributes' do + expect(subject[:reviewers].count).to be 1 + expect(subject[:reviewers].first.keys).to include( + :id, :name, :username, :state, :avatar_url, :web_url + ) end end end |