From b66d263bc684bd3f6d5eff9b62b543b4f362c8cc Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 23 Nov 2022 15:12:09 +0100 Subject: [PATCH] Replaces stub with allow --- spec/models/spree/payment_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/spree/payment_spec.rb b/spec/models/spree/payment_spec.rb index 49b54b3256..16bb1d7a9c 100644 --- a/spec/models/spree/payment_spec.rb +++ b/spec/models/spree/payment_spec.rb @@ -88,8 +88,8 @@ describe Spree::Payment do before do allow(payment).to receive(:record_response) allow(card).to receive(:has_payment_profile?).and_return(true) - payment.stub(:update_order) - payment.stub(:create_payment_profile) + allow(payment).to receive(:update_order).and_return(true) + allow(payment).to receive(:create_payment_profile).and_return(true) end context "#process!" do