0
0
Fork 0

Introduce access token fabricators (#4401)

This commit is contained in:
Akihiko Odaki 2017-07-27 22:16:07 +09:00 committed by Eugen Rochko
parent bb96ba13cf
commit 4f0b638cda
29 changed files with 36 additions and 30 deletions

View file

@ -4,7 +4,7 @@ describe Api::V1::Accounts::StatusesController do
render_views
let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) }
let(:token) { double acceptable?: true, resource_owner_id: user.id }
let(:token) { Fabricate(:accessible_access_token, resource_owner_id: user.id, scopes: 'read') }
before do
allow(controller).to receive(:doorkeeper_token) { token }