Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-16 12:08:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-16 12:08:46 +0300
commitb806264d29b8d52ccb78a41dcc3d67f2b040700c (patch)
treeaf97e9d36b2c82520d6850836dee6ba8d7ed9b17 /spec/requests/api/users_spec.rb
parent34ab9be97ecf84dd2b7a3b8f3149c0f7d1d7ab5c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/users_spec.rb')
-rw-r--r--spec/requests/api/users_spec.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/requests/api/users_spec.rb b/spec/requests/api/users_spec.rb
index 8b9aab33d67..0a22a09b8a6 100644
--- a/spec/requests/api/users_spec.rb
+++ b/spec/requests/api/users_spec.rb
@@ -645,21 +645,6 @@ describe API::Users do
expect(response).to have_gitlab_http_status(200)
end
- context 'updating name' do
- context 'when the ability to update their name is disabled for users' do
- before do
- stub_application_setting(updating_name_disabled_for_users: true)
- end
-
- it 'updates the user with new name' do
- put api("/users/#{user.id}", admin), params: { name: 'New Name' }
-
- expect(response).to have_gitlab_http_status(200)
- expect(json_response['name']).to eq('New Name')
- end
- end
- end
-
it "updates user with new bio" do
put api("/users/#{user.id}", admin), params: { bio: 'new test bio' }