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

lolsob-rspec
Akihiko Odaki 2017-07-27 22:13:10 +09:00 committed by Eugen Rochko
parent 839e1f911d
commit e39c922727
1 changed files with 1 additions and 1 deletions

View File

@ -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