Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Aug 22, 2024
1 parent 6fe6515 commit ca476de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
16 changes: 9 additions & 7 deletions spec/jobs/create_membership_invoice_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
let(:person) { people(:mitglied) }
let(:person_with_years) { context.people_with_membership_years.find(person.id) }
let(:abacus_client) { instance_double(Invoices::Abacus::Client) }
let(:external_invoice_draft) { Fabricate(:external_invoice, person: person,
link: section,
state: :draft,
issued_at: date,
sent_at: date,
year: date.year,
type: "ExternalInvoice::SacMembership") }
let(:external_invoice_draft) {
Fabricate(:external_invoice, person: person,
link: section,
state: :draft,
issued_at: date,
sent_at: date,
year: date.year,
type: "ExternalInvoice::SacMembership")
}

before do
SacMembershipConfig.update_all(valid_from: 2020)
Expand Down
16 changes: 9 additions & 7 deletions spec/models/external_invoice/sac_membership_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
describe ExternalInvoice::SacMembership do
let(:date) { Date.new(2023, 1, 1) }
let(:person) { Person.with_membership_years("people.*", date).find_by(id: people(:mitglied).id) }
let(:external_invoice_draft) { Fabricate(:external_invoice, person: people(:mitglied),
link: groups(:bluemlisalp),
state: :draft,
issued_at: date,
sent_at: date,
year: date.year,
type: "ExternalInvoice::SacMembership") }
let(:external_invoice_draft) {
Fabricate(:external_invoice, person: people(:mitglied),
link: groups(:bluemlisalp),
state: :draft,
issued_at: date,
sent_at: date,
year: date.year,
type: "ExternalInvoice::SacMembership")
}

context "memberships link to stammsektion" do
it "gets correct memberships" do
Expand Down

0 comments on commit ca476de

Please sign in to comment.