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 ...@@ -103,11 +103,7 @@ describe Gitlab::ImportExport::MembersMapper, services: true do
end end
before do before do
GroupMember.add_users_to_group( group.add_users([user, user2], GroupMember::DEVELOPER)
group,
[user, user2],
GroupMember::DEVELOPER
)
end end
it 'maps the project member' do it 'maps the project member' do
...@@ -115,7 +111,7 @@ describe Gitlab::ImportExport::MembersMapper, services: true do ...@@ -115,7 +111,7 @@ describe Gitlab::ImportExport::MembersMapper, services: true do
end end
it 'maps the project member if it already exists' do 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) expect(members_mapper.map[exported_user_id]).to eq(user2.id)
end 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