diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-04-07 16:36:26 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-04-18 11:12:28 -0300 |
commit | 09c8cf9de68c5d6f1250d6717b00f3b7e2008d3f (patch) | |
tree | 1127a63423d8fa4cee86dd5a7e9c17af92a027a6 /spec/controllers | |
parent | ce96d482d9056e9acdfea02d055c2706653cba92 (diff) | |
download | gitlab-ce-09c8cf9de68c5d6f1250d6717b00f3b7e2008d3f.tar.gz |
Remove group members check
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/groups/group_members_controller_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/controllers/groups/group_members_controller_spec.rb b/spec/controllers/groups/group_members_controller_spec.rb index cf8f2a28052..a5986598715 100644 --- a/spec/controllers/groups/group_members_controller_spec.rb +++ b/spec/controllers/groups/group_members_controller_spec.rb @@ -4,15 +4,17 @@ describe Groups::GroupMembersController do let(:user) { create(:user) } let(:group) { create(:group) } - context "when public visibility level is restricted" do + context "index" do before do group.add_owner(user) stub_application_setting(restricted_visibility_levels: [Gitlab::VisibilityLevel::PUBLIC]) end - it 'does not show group members' do + it 'renders index with group members' do get :index, group_id: group.path - expect(response.status).to eq(404) + + expect(response.status).to eq(200) + expect(response).to render_template(:index) end end end |