diff --git a/.env.test b/.env.test index 0833c82074..1fcf778303 100644 --- a/.env.test +++ b/.env.test @@ -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" diff --git a/spec/models/stripe_account_spec.rb b/spec/models/stripe_account_spec.rb index c54f227d1e..78dcae0c48 100644 --- a/spec/models/stripe_account_spec.rb +++ b/spec/models/stripe_account_spec.rb @@ -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