From 5b738476e4ba4e79d777e985e182be6ba7c4542c Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 5 Feb 2024 16:22:59 +0000 Subject: [PATCH] Replaces double with instance_double --- spec/lib/stripe/credit_card_remover_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/stripe/credit_card_remover_spec.rb b/spec/lib/stripe/credit_card_remover_spec.rb index efe0f6bdbd..5743456175 100644 --- a/spec/lib/stripe/credit_card_remover_spec.rb +++ b/spec/lib/stripe/credit_card_remover_spec.rb @@ -72,7 +72,7 @@ describe Stripe::CreditCardRemover do context 'and is deleted' do it 'deletes the credit card clone' do - customer = double('customer', deleted?: true) + customer = instance_double('customer', deleted?: true) allow(Stripe::Customer).to receive(:retrieve).and_return(customer) expect_any_instance_of(Stripe::CreditCardCloneDestroyer).to receive(:destroy_clones).with(