Fix `Rails/RedundantActiveRecordAllMethod` cop (#26885)
This commit is contained in:
parent
949f5eb860
commit
fe26f33e0a
|
@ -62,7 +62,7 @@ class DeliveryFailureTracker
|
||||||
key.delete_prefix(exhausted_deliveries_key_by(''))
|
key.delete_prefix(exhausted_deliveries_key_by(''))
|
||||||
end
|
end
|
||||||
|
|
||||||
domains - UnavailableDomain.all.pluck(:domain)
|
domains - UnavailableDomain.pluck(:domain)
|
||||||
end
|
end
|
||||||
|
|
||||||
def warning_domains_map(domains = nil)
|
def warning_domains_map(domains = nil)
|
||||||
|
|
|
@ -13,7 +13,7 @@ RSpec.describe Vacuum::ImportsVacuum do
|
||||||
|
|
||||||
describe '#perform' do
|
describe '#perform' do
|
||||||
it 'cleans up the expected imports' do
|
it 'cleans up the expected imports' do
|
||||||
expect { subject.perform }.to change { BulkImport.all.pluck(:id) }.from([old_unconfirmed, new_unconfirmed, recent_ongoing, recent_finished, old_finished].map(&:id)).to([new_unconfirmed, recent_ongoing, recent_finished].map(&:id))
|
expect { subject.perform }.to change { BulkImport.pluck(:id) }.from([old_unconfirmed, new_unconfirmed, recent_ongoing, recent_finished, old_finished].map(&:id)).to([new_unconfirmed, recent_ongoing, recent_finished].map(&:id))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue