Adapt specs to use stripe_sca_payment_method factory and delete stripe_connect_payment_method

This commit is contained in:
Luis Ramos
2021-07-24 23:04:50 +01:00
committed by Nihal
parent 9de9b41575
commit f90e34bb47
12 changed files with 18 additions and 84 deletions

View File

@@ -753,7 +753,7 @@ describe Admin::SubscriptionsController, type: :controller do
end
context "when other payment methods exist" do
let!(:stripe) { create(:stripe_connect_payment_method, distributors: [shop]) }
let!(:stripe) { create(:stripe_sca_payment_method, distributors: [shop]) }
let!(:paypal) {
Spree::Gateway::PayPalExpress.create!(name: "PayPalExpress", distributor_ids: [shop.id])
}