1
0

annual_report_spec.rb 371 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe AnnualReport do
  4. describe '#generate' do
  5. subject { described_class.new(account, Time.zone.now.year) }
  6. let(:account) { Fabricate :account }
  7. it 'builds a report for an account' do
  8. expect { subject.generate }
  9. .to change(GeneratedAnnualReport, :count).by(1)
  10. end
  11. end
  12. end