mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Pass in owner_id parameter correctly so admin/enterprises#create controller spec doesn't fail
This commit is contained in:
@@ -104,7 +104,7 @@ describe Admin::EnterprisesController, type: :controller do
|
||||
context "geocoding" do
|
||||
before do
|
||||
allow(controller).to receive_messages spree_current_user: admin_user
|
||||
enterprise_params[:enterprise][:owner_id] = admin_user
|
||||
enterprise_params[:enterprise][:owner_id] = admin_user.id
|
||||
end
|
||||
|
||||
it "geocodes the address when the :use_geocoder parameter is set" do
|
||||
|
||||
Reference in New Issue
Block a user