Simplify specs with stripe factory

This commit is contained in:
Maikel Linke
2019-02-13 11:31:17 +11:00
parent bda5eb1b1f
commit 5f5b0aaabf
7 changed files with 11 additions and 10 deletions

View File

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