diff options
author | Rémy Coutable <remy@rymai.me> | 2016-09-09 18:06:36 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-09-22 15:50:48 +0200 |
commit | 5dcdf1d51bbd5bde4ea9417dd4402571608c90f0 (patch) | |
tree | ef7617be280bdf72718d4ef806cc45a3fddbeea7 /spec/controllers | |
parent | b3f0a82f501ce26717a6f9e57d91cb2b1f1a967b (diff) | |
download | gitlab-ce-5dcdf1d51bbd5bde4ea9417dd4402571608c90f0.tar.gz |
Ensure Members::ApproveAccessRequestService can fin a requester by ID
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/groups/group_members_controller_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/controllers/groups/group_members_controller_spec.rb b/spec/controllers/groups/group_members_controller_spec.rb index c34475976c6..92b97bf3d0c 100644 --- a/spec/controllers/groups/group_members_controller_spec.rb +++ b/spec/controllers/groups/group_members_controller_spec.rb @@ -2,9 +2,10 @@ require 'spec_helper' describe Groups::GroupMembersController do let(:user) { create(:user) } - let(:group) { create(:group) } describe '#index' do + let(:group) { create(:group) } + before do group.add_owner(user) stub_application_setting(restricted_visibility_levels: [Gitlab::VisibilityLevel::PUBLIC]) |