mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #10047 from filipefurtad0/fix_rspec_mocks_deprecation
Replaces stub with allow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user