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/requests/oauth_tokens_spec.rb | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
Diffstat (limited to 'spec/requests/oauth_tokens_spec.rb')
-rw-r--r-- | spec/requests/oauth_tokens_spec.rb | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/spec/requests/oauth_tokens_spec.rb b/spec/requests/oauth_tokens_spec.rb index fdcc76f42cc..30659a5b896 100644 --- a/spec/requests/oauth_tokens_spec.rb +++ b/spec/requests/oauth_tokens_spec.rb @@ -54,30 +54,7 @@ RSpec.describe 'OAuth Tokens requests' do end.to change { Doorkeeper::AccessToken.count }.by(1) expect(json_response['access_token']).not_to be_nil - end - - context 'when the application is configured to use expiring tokens' do - before do - application.update!(expire_access_tokens: true) - end - - it 'generates an access token with an expiration' do - request_access_token(user) - - expect(json_response['expires_in']).not_to be_nil - end - end - - context 'when the application is configured not to use expiring tokens' do - before do - application.update!(expire_access_tokens: false) - end - - it 'generates an access token without an expiration' do - request_access_token(user) - - expect(json_response.key?('expires_in')).to eq(false) - end + expect(json_response['expires_in']).not_to be_nil end end end |