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