Fix RSpec/DescribedClass cop (#25104)

This commit is contained in:
Matt Jankowski
2023-06-06 07:58:33 -04:00
committed by GitHub
parent 1e243e2df7
commit c42591356d
66 changed files with 347 additions and 414 deletions

View File

@@ -12,7 +12,7 @@ RSpec.describe StatusRelationshipsPresenter do
allow(Status).to receive(:pins_map).with(anything, current_account_id).and_return(default_map)
end
let(:presenter) { StatusRelationshipsPresenter.new(statuses, current_account_id, **options) }
let(:presenter) { described_class.new(statuses, current_account_id, **options) }
let(:current_account_id) { Fabricate(:account).id }
let(:statuses) { [Fabricate(:status)] }
let(:status_ids) { statuses.map(&:id) + statuses.filter_map(&:reblog_of_id) }