summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/groups/group_members_controller_spec.rb3
-rw-r--r--spec/controllers/users_controller_spec.rb3
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