1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-21 08:39:44 +00:00
mastodon/spec/lib/annual_report_spec.rb
2024-09-04 05:12:25 +00:00

17 lines
371 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.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