mirror of
https://github.com/mastodon/mastodon.git
synced 2025-02-01 06:51:44 +01:00
Add coverage for AnnualReport.prepare
method (#33618)
This commit is contained in:
parent
a19141441d
commit
3af6739f21
@ -13,4 +13,13 @@ RSpec.describe AnnualReport do
|
||||
.to change(GeneratedAnnualReport, :count).by(1)
|
||||
end
|
||||
end
|
||||
|
||||
describe '.prepare' do
|
||||
before { Fabricate :status }
|
||||
|
||||
it 'generates records from source class which prepare data' do
|
||||
expect { described_class.prepare(Time.current.year) }
|
||||
.to change(AnnualReport::StatusesPerAccountCount, :count).by(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user