Replace deprecated any_instace syntax with allow_any_instance_of in spec/system/consumer/registration_spec.rb

This commit is contained in:
Nihal Mohammed
2022-03-14 20:04:49 +05:30
parent b3771bb623
commit df7227443a

View File

@@ -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