mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
update subscription spec with new method name
This commit is contained in:
@@ -160,7 +160,7 @@ describe SubscriptionConfirmJob do
|
||||
|
||||
context "when an error occurs while processing the payment" do
|
||||
before do
|
||||
expect(payment).to receive(:process!).and_raise Spree::Core::GatewayError, "payment failure error"
|
||||
expect(payment).to receive(:process_offline!).and_raise Spree::Core::GatewayError, "payment failure error"
|
||||
end
|
||||
|
||||
it "sends a failed payment email" do
|
||||
@@ -176,7 +176,7 @@ describe SubscriptionConfirmJob do
|
||||
end
|
||||
|
||||
before do
|
||||
expect(payment).to receive(:process!) { true }
|
||||
expect(payment).to receive(:process_offline!) { true }
|
||||
expect(payment).to receive(:completed?) { true }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user