From 94bc787283619847dd583384393bbd8418504f73 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 16:29:15 +0200 Subject: [PATCH] Remove unused `let` --- spec/models/stripe_account_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/models/stripe_account_spec.rb b/spec/models/stripe_account_spec.rb index 7fb55fecd5..c54f227d1e 100644 --- a/spec/models/stripe_account_spec.rb +++ b/spec/models/stripe_account_spec.rb @@ -52,9 +52,10 @@ RSpec.describe StripeAccount do context "if the account is also associated with another Enterprise" do let!(:enterprise2) { create(:enterprise) } - let!(:another_stripe_account) { + + before do create(:stripe_account, enterprise: enterprise2, stripe_user_id:) - } + end it "Doesn't make a Stripe API disconnection request " do expect(Stripe::OAuth).not_to receive(:deauthorize)