Autofix Rubocop RSpec/LeadingSubject (#23670)
This commit is contained in:
parent
4ea1e0fceb
commit
4552685f6b
78 changed files with 256 additions and 338 deletions
|
@ -1,12 +1,12 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Vacuum::MediaAttachmentsVacuum do
|
||||
subject { described_class.new(retention_period) }
|
||||
|
||||
let(:retention_period) { 7.days }
|
||||
let(:remote_status) { Fabricate(:status, account: Fabricate(:account, domain: 'example.com')) }
|
||||
let(:local_status) { Fabricate(:status) }
|
||||
|
||||
subject { described_class.new(retention_period) }
|
||||
|
||||
describe '#perform' do
|
||||
let!(:old_remote_media) { Fabricate(:media_attachment, remote_url: 'https://example.com/foo.png', status: remote_status, created_at: (retention_period + 1.day).ago, updated_at: (retention_period + 1.day).ago) }
|
||||
let!(:old_local_media) { Fabricate(:media_attachment, status: local_status, created_at: (retention_period + 1.day).ago, updated_at: (retention_period + 1.day).ago) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue