diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-02 03:08:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-02 03:08:11 +0300 |
commit | 93dcf45d441bc884b167f4338380c8c888e9b86f (patch) | |
tree | f55e8c1d39013380d1ff7d2a4e3cca537a35192a /spec/services | |
parent | 0e68afab211a172b862a7acc774e1eda5da8e471 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/users/update_service_spec.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/services/users/update_service_spec.rb b/spec/services/users/update_service_spec.rb index bd54ca97431..8e13e7d9c0c 100644 --- a/spec/services/users/update_service_spec.rb +++ b/spec/services/users/update_service_spec.rb @@ -55,15 +55,6 @@ describe Users::UpdateService do expect(result[:message]).to eq("Emoji is not included in the list") end - it 'ignores read-only attributes' do - allow(user).to receive(:read_only_attribute?).with(:name).and_return(true) - - expect do - update_user(user, name: 'changed' + user.name) - user.reload - end.not_to change { user.name } - end - it 'updates user detail with provided attributes' do result = update_user(user, job_title: 'Backend Engineer') |