mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 00:38:07 +01:00
17 lines
365 B
Ruby
17 lines
365 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'rails_helper'
|
||
|
|
||
|
describe AnnualReport do
|
||
|
describe '#generate' do
|
||
|
subject { described_class.new(account, Time.zone.now.year) }
|
||
|
|
||
|
let(:account) { Fabricate :account }
|
||
|
|
||
|
it 'builds a report for an account' do
|
||
|
expect { subject.generate }
|
||
|
.to change(GeneratedAnnualReport, :count).by(1)
|
||
|
end
|
||
|
end
|
||
|
end
|