update spec

This commit is contained in:
Andy Brett
2021-04-27 18:28:28 -07:00
parent 9906afa1a6
commit 4736013946
2 changed files with 4 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ describe Spree::Gateway::StripeSCA, type: :model do
amount: order.total,
payment_method: subject,
source: credit_card,
response_code: "12345"
)
}
let(:gateway_options) {

View File

@@ -103,9 +103,8 @@ describe Spree::Payment do
allow(payment).to receive(:response_code) { "pi_123" }
end
it "should call capture instead of purchase" do
expect(payment).to receive(:capture!)
expect(payment).to_not receive(:purchase!)
it "should call purchase" do
expect(payment).to receive(:purchase!)
payment.process!
end
end
@@ -119,7 +118,7 @@ describe Spree::Payment do
it "should call capture if the payment is already authorized" do
expect(payment).to receive(:capture!)
expect(payment).to_not receive(:purchase!)
payment.process!
payment.process_offline!
end
end