mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Replaces double with instance_double
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user