diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-03-31 17:36:40 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-04-18 17:12:27 +0300 |
commit | e8a77c0aee3eaf99793b3678a0eb97194244b339 (patch) | |
tree | 231de9a63132ba58fdecf8c27e2b062f3811a4b7 /spec | |
parent | 668d6ffa437aa5c920e987beb5de4e8dacbfd00c (diff) |
Fix code
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/groups/group_members_controller_spec.rb | 3 | ||||
-rw-r--r-- | spec/controllers/users_controller_spec.rb | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/groups/group_members_controller_spec.rb b/spec/controllers/groups/group_members_controller_spec.rb index 3a4dd2bf1fa..cf8f2a28052 100644 --- a/spec/controllers/groups/group_members_controller_spec.rb +++ b/spec/controllers/groups/group_members_controller_spec.rb @@ -4,8 +4,7 @@ describe Groups::GroupMembersController do let(:user) { create(:user) } let(:group) { create(:group) } - - context "When public visibility level is restricted" do + context "when public visibility level is restricted" do before do group.add_owner(user) stub_application_setting(restricted_visibility_levels: [Gitlab::VisibilityLevel::PUBLIC]) diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index f6235c29a17..26acfd3bd96 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -54,9 +54,10 @@ describe UsersController do context 'when logged in' do before { sign_in(user) } - it 'renders 404' do + it 'renders show' do get :show, username: user.username expect(response.status).to eq(200) + expect(response).to render_template('show') end end end |