Pass in owner_id parameter correctly so admin/enterprises#create controller spec doesn't fail

This commit is contained in:
Cillian O'Ruanaidh
2021-03-19 22:21:47 +00:00
committed by Maikel Linke
parent a59a340fcd
commit 8a4e7d70a9

View File

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