diff options
author | Starfall <admin@plural.cafe> | 2020-05-15 18:30:58 -0500 |
---|---|---|
committer | Starfall <admin@plural.cafe> | 2020-05-15 18:30:58 -0500 |
commit | 3f6370500cd8bf04fab9c9d8f3099271126a3097 (patch) | |
tree | 7215e9562c06435f9e6464fee2aa0185dd108a34 /spec/controllers/oauth/authorizations_controller_spec.rb | |
parent | ca3af6c5b00be851e2ced9112429cfc1baa79529 (diff) | |
parent | b7e178d2e4102bdaa1ea41dfd8ed50093cf3f60a (diff) |
Update to Mastodon 3.1.4 / Merge branch 'glitch'
Diffstat (limited to 'spec/controllers/oauth/authorizations_controller_spec.rb')
-rw-r--r-- | spec/controllers/oauth/authorizations_controller_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/controllers/oauth/authorizations_controller_spec.rb b/spec/controllers/oauth/authorizations_controller_spec.rb index a84260a54..c5eeea397 100644 --- a/spec/controllers/oauth/authorizations_controller_spec.rb +++ b/spec/controllers/oauth/authorizations_controller_spec.rb @@ -41,11 +41,11 @@ RSpec.describe Oauth::AuthorizationsController, type: :controller do context 'when app is already authorized' do before do Doorkeeper::AccessToken.find_or_create_for( - app, - user.id, - app.scopes, - Doorkeeper.configuration.access_token_expires_in, - Doorkeeper.configuration.refresh_token_enabled? + application: app, + resource_owner: user.id, + scopes: app.scopes, + expires_in: Doorkeeper.configuration.access_token_expires_in, + use_refresh_token: Doorkeeper.configuration.refresh_token_enabled? ) end |