Restore required expectation

It is the whole purpose of the spec.
This commit is contained in:
David Cook
2026-03-03 11:06:10 +11:00
committed by GitHub
parent a069e4247f
commit 46de21ea2b

View File

@@ -186,6 +186,7 @@ module Reporting
let!(:line_item) { create(:line_item, order: order) }
it 'calls #new_outstanding_balance' do
expect_any_instance_of(Spree::Order).to receive(:new_outstanding_balance)
CustomerPayments.new(user).__send__(:customer_payments_amount_owed, [line_item])
end
end