Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
annvelents committed Dec 30, 2024
1 parent 73cc232 commit 56eb95b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# frozen_string_literal: true

RSpec.shared_examples 'applies invoice_custom_sections' do
let(:invoice_custom_sections) { create_list(:invoice_custom_section, 4, organization:)}
let(:invoice_custom_sections) { create_list(:invoice_custom_section, 4, organization:) }

before do
organization.selected_invoice_custom_sections = invoice_custom_sections[2..3]
end

context 'there customer has :skip_invoice_custom_sections flag' do
context 'when the customer has :skip_invoice_custom_sections flag' do
before { customer.update(skip_invoice_custom_sections: true) }

it 'doesn\'t create applied_invoice_custom_section' do
expect { service_call }.not_to change { AppliedInvoiceCustomSection.count }
expect { service_call }.not_to change(AppliedInvoiceCustomSection, :count)
end
end

Expand Down

0 comments on commit 56eb95b

Please sign in to comment.