diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 12:07:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 12:07:54 +0300 |
commit | 87ef501eacd66d7166183d20d84e33de022f7002 (patch) | |
tree | fa4e0f41e00a4b6aeb035530be4b5473f51b7a3d /spec/controllers | |
parent | f321e51f46bcb628c3e96a44b5ebf3bb1c4033ab (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/profiles_controller_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/controllers/profiles_controller_spec.rb b/spec/controllers/profiles_controller_spec.rb index 91f3bfcfa40..f0d83bb6bbd 100644 --- a/spec/controllers/profiles_controller_spec.rb +++ b/spec/controllers/profiles_controller_spec.rb @@ -89,6 +89,16 @@ describe ProfilesController, :request_store do expect(user.reload.status.message).to eq('Working hard!') expect(response).to have_gitlab_http_status(:found) end + + it 'allows updating user specified job title' do + title = 'Marketing Executive' + sign_in(user) + + put :update, params: { user: { job_title: title } } + + expect(user.reload.job_title).to eq(title) + expect(response).to have_gitlab_http_status(:found) + end end describe 'PUT update_username' do |