Introduce access token fabricators (#4401)

This commit is contained in:
Akihiko Odaki authored and Eugen Rochko committed 2017-07-27 15:16:07 +02:00
1 parent bb96ba13cf
commit 4f0b638cda
29 files changed
+36 -30

No files matched your search

@@ -4,7 +4,7 @@ RSpec.describe Api::V1::BlocksController, type: :controller 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: 'follow') }
before do
Fabricate(:block, account: user.account)