Remove Simple References to Bogus Gateway

This commit is contained in:
Neal Chambers
2023-10-24 09:42:23 +09:00
parent 74870ff0ad
commit 0663f04535
6 changed files with 1 additions and 16 deletions

View File

@@ -767,12 +767,11 @@ describe Admin::SubscriptionsController, type: :controller do
let!(:paypal) {
Spree::Gateway::PayPalExpress.create!(name: "PayPalExpress", distributor_ids: [shop.id])
}
let!(:bogus) { create(:bogus_payment_method, distributors: [shop]) }
it "only loads Stripe and Cash payment methods" do
controller.send(:load_form_data)
expect(assigns(:payment_methods)).to include payment_method, stripe
expect(assigns(:payment_methods)).to_not include paypal, bogus
expect(assigns(:payment_methods)).to_not include paypal
end
end
end