Skip to content
Snippets Groups Projects
Commit bdf573d1 authored by Akihiko Odaki's avatar Akihiko Odaki Committed by Eugen Rochko
Browse files

Remove redundant fabrication in the spec for Api::V1::FavouritesController (#4391)

parent 97a48f23
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ require 'rails_helper'
RSpec.describe Api::V1::FavouritesController, type: :controller do
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 }
before do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment