Removes assertion on bogus_customer

When running the CI we actually assert on the bogus credentials, which breaks the spec

Removes unecessary StripeStubs inclusion
This commit is contained in:
filipefurtad0
2024-01-25 18:28:52 +00:00
parent 3e734f1e6b
commit d2bb53da5b

View File

@@ -11,8 +11,6 @@ module Stripe
let(:secret) { ENV.fetch('STRIPE_SECRET_TEST_API_KEY', nil) }
describe "#find_or_clone", :vcr, :stripe_version do
include StripeStubs
before { Stripe.api_key = secret }
let(:customer_id) { ENV.fetch('STRIPE_CUSTOMER', nil) }
@@ -80,7 +78,6 @@ module Stripe
expect(payment_method_id).to match(/pm_/)
expect(new_payment_method_id).to match(/pm_/)
expect(payment_method_id).not_to eq new_payment_method_id
expect(customer_id).to match(/cus_/)
expect(new_customer_id).to match(/cus_/)
expect(customer_id).not_to eq new_customer_id
end