diff options
author | James Lopez <james@jameslopez.es> | 2017-01-31 22:06:05 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-01-31 22:06:05 +0300 |
commit | c6aed2dfc8f879a9edf611235cae3760f3af3d4e (patch) | |
tree | 4f6f0316137c08ed6095d375050a245b2202fbe2 /spec/lib | |
parent | 8ea1dafe83da0b018dcc413242194749afd0e05a (diff) |
update spec
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/import_export/members_mapper_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/lib/gitlab/import_export/members_mapper_spec.rb b/spec/lib/gitlab/import_export/members_mapper_spec.rb index 495ca4b4955..f2cb028206f 100644 --- a/spec/lib/gitlab/import_export/members_mapper_spec.rb +++ b/spec/lib/gitlab/import_export/members_mapper_spec.rb @@ -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 |