diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-23 18:07:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-23 18:07:42 +0300 |
commit | bc0f141f2f073a971aad1eb5349bb718747df028 (patch) | |
tree | 72fcc48dfac8e3f3560e22014eacdd2eaae8bc89 /spec/workers/update_highest_role_worker_spec.rb | |
parent | 2c29837ce1692790dedccbc9b36b44dc8aaacbee (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/update_highest_role_worker_spec.rb')
-rw-r--r-- | spec/workers/update_highest_role_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/update_highest_role_worker_spec.rb b/spec/workers/update_highest_role_worker_spec.rb index 0c8ee53da9a..cd127f26e95 100644 --- a/spec/workers/update_highest_role_worker_spec.rb +++ b/spec/workers/update_highest_role_worker_spec.rb @@ -10,7 +10,7 @@ RSpec.describe UpdateHighestRoleWorker, :clean_gitlab_redis_shared_state do describe '#perform' do context 'when user is not found' do it 'does not update or deletes any highest role', :aggregate_failures do - expect { worker.perform(-1) }.not_to change(UserHighestRole, :count) + expect { worker.perform(-1) }.not_to change { UserHighestRole.count } end end @@ -71,7 +71,7 @@ RSpec.describe UpdateHighestRoleWorker, :clean_gitlab_redis_shared_state do it 'does not delete a highest role' do user = create(:user, state: 'blocked') - expect { worker.perform(user.id) }.not_to change(UserHighestRole, :count) + expect { worker.perform(user.id) }.not_to change { UserHighestRole.count } end end end |