Autofix Rubocop RSpec/LeadingSubject (#23670)

This commit is contained in:
Nick Schonning
2023-02-19 23:24:14 -05:00
committed by GitHub
parent 4ea1e0fceb
commit 4552685f6b
78 changed files with 256 additions and 338 deletions

View File

@@ -4,12 +4,12 @@ require 'rails_helper'
RSpec.describe FamiliarFollowersPresenter do
describe '#accounts' do
subject { described_class.new(requested_accounts, account.id) }
let(:account) { Fabricate(:account) }
let(:familiar_follower) { Fabricate(:account) }
let(:requested_accounts) { Fabricate.times(2, :account) }
subject { described_class.new(requested_accounts, account.id) }
before do
familiar_follower.follow!(requested_accounts.first)
account.follow!(familiar_follower)