Skip to content

Commit

Permalink
fix last test
Browse files Browse the repository at this point in the history
  • Loading branch information
annvelents committed Dec 30, 2024
1 parent 2f2bba6 commit 2e1e5f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
end

context 'when an ActiveRecord::RecordInvalid error is raised' do
let(:section_ids) { invoice_custom_sections[1..2].map(&:id) }

before do
allow(customer).to receive(:selected_invoice_custom_sections=).and_raise(ActiveRecord::RecordInvalid.new(customer))
end
Expand Down
2 changes: 1 addition & 1 deletion spec/services/customers/update_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
let(:update_args) do
{
id: customer.id,
selected_invoice_custom_section_ids: invoice_custom_sections[2..3].map(&:id)
selected_invoice_custom_section_ids: []
}
end

Expand Down

0 comments on commit 2e1e5f6

Please sign in to comment.