summaryrefslogtreecommitdiff
path: root/spec/requests/oauth_tokens_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/oauth_tokens_spec.rb')
-rw-r--r--spec/requests/oauth_tokens_spec.rb25
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