mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Remove redundant fabrication in the spec for Api::V1::FavouritesController (#4391)
This commit is contained in:
parent
97a48f237d
commit
bdf573d140
@ -3,7 +3,7 @@ require 'rails_helper'
|
|||||||
RSpec.describe Api::V1::FavouritesController, type: :controller do
|
RSpec.describe Api::V1::FavouritesController, type: :controller do
|
||||||
render_views
|
render_views
|
||||||
|
|
||||||
let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) }
|
let(:user) { Fabricate(:user) }
|
||||||
let(:token) { double acceptable?: true, resource_owner_id: user.id }
|
let(:token) { double acceptable?: true, resource_owner_id: user.id }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
Loading…
Reference in New Issue
Block a user