Introduce access token fabricators (#4401)
This commit is contained in:
committed by
Eugen Rochko
parent
bb96ba13cf
commit
4f0b638cda
@ -5,7 +5,7 @@ RSpec.describe Api::V1::StatusesController, type: :controller do
|
||||
|
||||
let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) }
|
||||
let(:app) { Fabricate(:application, name: 'Test app', website: 'http://testapp.com') }
|
||||
let(:token) { double acceptable?: true, resource_owner_id: user.id, application: app }
|
||||
let(:token) { Fabricate(:accessible_access_token, resource_owner_id: user.id, application: app, scopes: 'write') }
|
||||
|
||||
context 'with an oauth token' do
|
||||
before do
|
||||
|
Reference in New Issue
Block a user