From 58851a8e679a8ba67acdad16bec1a3c023b2d3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <2887858+deivid-rodriguez@users.noreply.github.com> Date: Tue, 21 Oct 2025 15:31:41 +0200 Subject: [PATCH] Move client_id `let` to the only spec using it --- spec/models/stripe_account_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/models/stripe_account_spec.rb b/spec/models/stripe_account_spec.rb index 706668d3d3..7fb55fecd5 100644 --- a/spec/models/stripe_account_spec.rb +++ b/spec/models/stripe_account_spec.rb @@ -6,7 +6,6 @@ require 'stripe/oauth' RSpec.describe StripeAccount do describe "deauthorize_and_destroy", :vcr, :stripe_version do let!(:enterprise) { create(:enterprise) } - let(:client_id) { ENV.fetch('STRIPE_CLIENT_ID', nil) } let(:stripe_user_id) { ENV.fetch('STRIPE_ACCOUNT', nil) } let(:stripe_publishable_key) { ENV.fetch('STRIPE_PUBLIC_TEST_API_KEY', nil) } @@ -36,7 +35,7 @@ RSpec.describe StripeAccount do end before do - Stripe.client_id = client_id + Stripe.client_id = ENV.fetch('STRIPE_CLIENT_ID', nil) stripe_account.update!(stripe_publishable_key:, stripe_user_id: connected_account.id) end