Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annvelents committed Dec 10, 2024
1 parent 82cad0e commit 9559082
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

let(:organization) { create(:organization) }
let(:customer) { create(:customer) }
let(:invoice_custom_section) { create(:invoice_custom_section, organization: ) }
let(:invoice_custom_section) { create(:invoice_custom_section, organization:) }

before do
allow(InvoiceCustomSections::Deselect::ForAllUsagesService).to receive(:call).and_call_original
Expand Down
4 changes: 2 additions & 2 deletions spec/services/invoice_custom_sections/update_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
context 'when pass selected as false' do
let(:selected) { false }

it 'calls DeselectService when selected is false' do
it 'calls Deselect::ForOrganizationService when selected is false' do
service_result
expect(InvoiceCustomSections::Deselect::ForOrganizationService).to have_received(:call)
.with(section: invoice_custom_section, organization: organization)
.with(section: invoice_custom_section)
end
end
end
Expand Down

0 comments on commit 9559082

Please sign in to comment.