diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
commit | 36a59d088eca61b834191dacea009677a96c052f (patch) | |
tree | e4f33972dab5d8ef79e3944a9f403035fceea43f /spec/models/deploy_token_spec.rb | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
Diffstat (limited to 'spec/models/deploy_token_spec.rb')
-rw-r--r-- | spec/models/deploy_token_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/models/deploy_token_spec.rb b/spec/models/deploy_token_spec.rb index c48f1fab3c6..635326eeadc 100644 --- a/spec/models/deploy_token_spec.rb +++ b/spec/models/deploy_token_spec.rb @@ -73,10 +73,10 @@ RSpec.describe DeployToken do describe '#ensure_token' do it 'ensures a token' do - deploy_token.token = nil + deploy_token.token_encrypted = nil deploy_token.save! - expect(deploy_token.token).not_to be_empty + expect(deploy_token.token_encrypted).not_to be_empty end end @@ -469,4 +469,10 @@ RSpec.describe DeployToken do end end end + + describe '.impersonated?' do + it 'returns false' do + expect(subject.impersonated?).to be(false) + end + end end |