diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-28 21:09:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-28 21:09:27 +0300 |
commit | e1b9b92a49eea88ea7c3b101aec0315e64e94678 (patch) | |
tree | fadb5aa290045f6b345ad51b4752515d5a126dd7 /spec/serializers/member_serializer_spec.rb | |
parent | c6ee7ef0f577e0155740d022babdc1b2b0e28d87 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/member_serializer_spec.rb')
-rw-r--r-- | spec/serializers/member_serializer_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/serializers/member_serializer_spec.rb b/spec/serializers/member_serializer_spec.rb index d3ec45fe9c4..af209c0191f 100644 --- a/spec/serializers/member_serializer_spec.rb +++ b/spec/serializers/member_serializer_spec.rb @@ -7,7 +7,7 @@ RSpec.describe MemberSerializer do let_it_be(:current_user) { create(:user) } - subject { described_class.new.represent(members, { current_user: current_user, group: group }) } + subject { described_class.new.represent(members, { current_user: current_user, group: group, source: source }) } shared_examples 'members.json' do it 'matches json schema' do @@ -17,6 +17,7 @@ RSpec.describe MemberSerializer do context 'group member' do let(:group) { create(:group) } + let(:source) { group } let(:members) { present_members(create_list(:group_member, 1, group: group)) } it_behaves_like 'members.json' @@ -24,6 +25,7 @@ RSpec.describe MemberSerializer do context 'project member' do let(:project) { create(:project) } + let(:source) { project } let(:group) { project.group } let(:members) { present_members(create_list(:project_member, 1, project: project)) } |