Commit c6aed2df authored by James Lopez's avatar James Lopez

update spec

parent 8ea1dafe
......@@ -103,11 +103,7 @@ describe Gitlab::ImportExport::MembersMapper, services: true do
end
before do
GroupMember.add_users_to_group(
group,
[user, user2],
GroupMember::DEVELOPER
)
group.add_users([user, user2], GroupMember::DEVELOPER)
end
it 'maps the project member' do
......@@ -115,7 +111,7 @@ describe Gitlab::ImportExport::MembersMapper, services: true do
end
it 'maps the project member if it already exists' do
ProjectMember.create!(user: user2, access_level: ProjectMember::MASTER, source_id: project.id)
project.add_master(user2)
expect(members_mapper.map[exported_user_id]).to eq(user2.id)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment