Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Aug 21, 2024
1 parent fd540fb commit 57673ca
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion app/controllers/people/membership_invoices_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/models/external_invoice/sac_membership.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 57673ca

Please sign in to comment.