From c68459f212a7aefb69863f896de7174da25f70fc Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 2 Jun 2020 16:16:07 +0100 Subject: [PATCH] Make enterprises_controller_spec use api_post instead of spree_post --- spec/controllers/api/enterprises_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/api/enterprises_controller_spec.rb b/spec/controllers/api/enterprises_controller_spec.rb index 54c5efc3b3..d0e8209f31 100644 --- a/spec/controllers/api/enterprises_controller_spec.rb +++ b/spec/controllers/api/enterprises_controller_spec.rb @@ -23,14 +23,14 @@ module Api address1: '123 Abc Street', city: 'Northcote', zipcode: '3070', - state_id: australia.states.first, + state_id: australia.states.first.id, country_id: australia.id } } end it "creates as sells=any when it is not a producer" do - spree_post :create, { enterprise: new_enterprise_params } + api_post :create, { enterprise: new_enterprise_params } expect(response).to be_success enterprise = Enterprise.last