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

master
Akihiko Odaki 7 years ago committed by Eugen Rochko
parent 97a48f237d
commit bdf573d140
  1. 2
      spec/controllers/api/v1/favourites_controller_spec.rb

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

Loading…
Cancel
Save