Commit ba192c73 authored by Stan Hu's avatar Stan Hu

Rubocop offenses

parent 1fba0710
...@@ -225,19 +225,19 @@ describe ProjectTeam, models: true do ...@@ -225,19 +225,19 @@ describe ProjectTeam, models: true do
second_group = create(:group) second_group = create(:group)
project.project_group_links.create( project.project_group_links.create(
group: second_group, group: second_group,
group_access: Gitlab::Access::MASTER) group_access: Gitlab::Access::MASTER)
second_group.add_master(second_developer) second_group.add_master(second_developer)
users = [master, reporter, promoted_guest, guest, group_developer, second_developer].map(&:id) users = [master, reporter, promoted_guest, guest, group_developer, second_developer].map(&:id)
expected = { expected = {
master.id => Gitlab::Access::MASTER, master.id => Gitlab::Access::MASTER,
reporter.id => Gitlab::Access::REPORTER, reporter.id => Gitlab::Access::REPORTER,
promoted_guest.id => Gitlab::Access::DEVELOPER, promoted_guest.id => Gitlab::Access::DEVELOPER,
guest.id => Gitlab::Access::GUEST, guest.id => Gitlab::Access::GUEST,
group_developer.id => Gitlab::Access::DEVELOPER, group_developer.id => Gitlab::Access::DEVELOPER,
second_developer.id => Gitlab::Access::MASTER second_developer.id => Gitlab::Access::MASTER
} }
expect(project.team.max_member_access_for_user_ids(users)).to eq(expected) expect(project.team.max_member_access_for_user_ids(users)).to eq(expected)
......
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