Merge pull request #13961 from mkllnk/taler-checkout-stock-error

Taler checkout stock error
This commit is contained in:
Maikel
2026-03-20 11:29:58 +11:00
committed by GitHub
19 changed files with 201 additions and 448 deletions

View File

@@ -282,11 +282,6 @@ RSpec.describe Spree::Order do
let(:payment) { build(:payment) }
before { allow(order).to receive_messages pending_payments: [payment], total: 10 }
it "returns false if no pending_payments available" do
allow(order).to receive_messages pending_payments: []
expect(order.process_payments!).to be_falsy
end
context "when the processing is sucessful" do
it "processes the payments" do
expect(payment).to receive(:process!)