mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
Remove unnecessary test specific environment variable
This commit is contained in:
@@ -20,7 +20,6 @@ STRIPE_INSTANCE_SECRET_KEY="bogus_key"
|
||||
STRIPE_CUSTOMER="bogus_customer"
|
||||
STRIPE_ACCOUNT="bogus_account"
|
||||
STRIPE_CLIENT_ID="bogus_client_id"
|
||||
STRIPE_PUBLIC_TEST_API_KEY="bogus_stripe_publishable_key"
|
||||
|
||||
SITE_URL="test.host"
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ RSpec.describe StripeAccount do
|
||||
describe "deauthorize_and_destroy", :vcr, :stripe_version do
|
||||
let!(:enterprise) { create(:enterprise) }
|
||||
let(:stripe_user_id) { ENV.fetch('STRIPE_ACCOUNT', nil) }
|
||||
let(:stripe_publishable_key) { ENV.fetch('STRIPE_PUBLIC_TEST_API_KEY', nil) }
|
||||
|
||||
let!(:stripe_account) {
|
||||
create(:stripe_account, enterprise:, stripe_user_id:)
|
||||
@@ -36,7 +35,7 @@ RSpec.describe StripeAccount do
|
||||
|
||||
before do
|
||||
Stripe.client_id = ENV.fetch('STRIPE_CLIENT_ID', nil)
|
||||
stripe_account.update!(stripe_publishable_key:, stripe_user_id: connected_account.id)
|
||||
stripe_account.update!(stripe_user_id: connected_account.id)
|
||||
end
|
||||
|
||||
it "destroys the record" do
|
||||
|
||||
Reference in New Issue
Block a user