diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-24 15:09:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-24 15:09:32 +0300 |
commit | f296f23500b4b3758670ae0c5ce2e1779f533e8b (patch) | |
tree | 717151cb9e81d489b4ecf880988ea10d77b7224f /spec/services/personal_access_tokens | |
parent | fd7c75bf603f4f2f1a4a4e63ef5cbc1a51cc0a15 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/personal_access_tokens')
-rw-r--r-- | spec/services/personal_access_tokens/revoke_token_family_service_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/services/personal_access_tokens/revoke_token_family_service_spec.rb b/spec/services/personal_access_tokens/revoke_token_family_service_spec.rb index 3e32200cc77..8a66efb1585 100644 --- a/spec/services/personal_access_tokens/revoke_token_family_service_spec.rb +++ b/spec/services/personal_access_tokens/revoke_token_family_service_spec.rb @@ -14,5 +14,12 @@ RSpec.describe PersonalAccessTokens::RevokeTokenFamilyService, feature_category: expect(response).to be_success expect(token_1.reload).to be_revoked end + + it 'does not revoke any active token not in the pat family' do + unrelated_token = create(:personal_access_token) + + expect(response).to be_success + expect(unrelated_token.reload).to be_active + end end end |