Update rubocop-rspec to version 2.22.0, fix RSpec/IndexedLet
cop (#24698)
This commit is contained in:
parent
24015ef0cc
commit
4c5aa0e470
25 changed files with 334 additions and 322 deletions
|
@ -5,13 +5,13 @@ require 'rails_helper'
|
|||
describe FollowerAccountsController do
|
||||
render_views
|
||||
|
||||
let(:alice) { Fabricate(:account) }
|
||||
let(:follower0) { Fabricate(:account) }
|
||||
let(:follower1) { Fabricate(:account) }
|
||||
let(:alice) { Fabricate(:account, username: 'alice') }
|
||||
let(:follower_bob) { Fabricate(:account, username: 'bob') }
|
||||
let(:follower_chris) { Fabricate(:account, username: 'curt') }
|
||||
|
||||
describe 'GET #index' do
|
||||
let!(:follow0) { follower0.follow!(alice) }
|
||||
let!(:follow1) { follower1.follow!(alice) }
|
||||
let!(:follow_from_bob) { follower_bob.follow!(alice) }
|
||||
let!(:follow_from_chris) { follower_chris.follow!(alice) }
|
||||
|
||||
context 'when format is html' do
|
||||
subject(:response) { get :index, params: { account_username: alice.username, format: :html } }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue