diff --git a/app/controllers/people/membership_invoices_controller.rb b/app/controllers/people/membership_invoices_controller.rb index e83d0a633..70c095f3c 100644 --- a/app/controllers/people/membership_invoices_controller.rb +++ b/app/controllers/people/membership_invoices_controller.rb @@ -47,7 +47,6 @@ def create_invoice def enqueue_membership_invoice_job membership_invoice = @external_invoice.build_membership_invoice(invoice_form.discount, invoice_form.new_entry, invoice_form.reference_date) - require 'pry'; binding.pry # rubocop:disable Style/Semicolon,Lint/Debugger if membership_invoice.is_a?(Invoices::Abacus::MembershipInvoice) CreateMembershipInvoiceJob.new(@external_invoice.id, invoice_form.discount, invoice_form.new_entry, invoice_form.reference_date).enqueue! else diff --git a/app/models/external_invoice/sac_membership.rb b/app/models/external_invoice/sac_membership.rb index cdc23b92d..d920fefd2 100644 --- a/app/models/external_invoice/sac_membership.rb +++ b/app/models/external_invoice/sac_membership.rb @@ -37,7 +37,7 @@ def title I18n.t("invoices.sac_memberships.title", year: year) end - def build_membership_invoice(discount, new_entry, reference_date) + def build_membership_invoice(discount, new_entry, reference_date) @date = reference_date membership_invoice = membership_invoice(discount, new_entry, reference_date) diff --git a/spec/controllers/people/external_invoices_controller_spec.rb b/spec/controllers/people/external_invoices_controller_spec.rb index 4f397dc14..69d1f8561 100644 --- a/spec/controllers/people/external_invoices_controller_spec.rb +++ b/spec/controllers/people/external_invoices_controller_spec.rb @@ -81,7 +81,6 @@ def check_presence_of_cancel_button_after end it "does not show the cancellation button" do - require 'pry'; binding.pry # rubocop:disable Style/Semicolon,Lint/Debugger invoice expect(ExternalInvoice.where(person_id: person.id).count).to eq(2)