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