From df7227443aa2614870ae552dcdeec36d3225a62b Mon Sep 17 00:00:00 2001 From: Nihal Mohammed Date: Mon, 14 Mar 2022 20:04:49 +0530 Subject: [PATCH] Replace deprecated any_instace syntax with allow_any_instance_of in spec/system/consumer/registration_spec.rb --- spec/system/consumer/registration_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/consumer/registration_spec.rb b/spec/system/consumer/registration_spec.rb index 6aa64dd231..5609430a2e 100644 --- a/spec/system/consumer/registration_spec.rb +++ b/spec/system/consumer/registration_spec.rb @@ -17,7 +17,7 @@ describe "Registration", js: true do Spree::State.create!({ name: "Berat", abbr: "BRA", country: albania }) Spree::Country.create!({ name: "Chad", iso3: "TCD", iso: "TD", iso_name: "CHAD", numcode: "148" }) - AddressGeocoder.any_instance.stub(:geocode) + allow_any_instance_of(AddressGeocoder).to receive(:geocode) end after do