diff --git a/server/features/mgmt_api_companies.feature b/server/features/mgmt_api_companies.feature index 0ab4d9b..c13cf8d 100644 --- a/server/features/mgmt_api_companies.feature +++ b/server/features/mgmt_api_companies.feature @@ -52,3 +52,33 @@ Feature: Management API - Companies """ {"name": "xyz company"} """ + + Scenario: Create a company with default country + Given empty "companies" + When we post to "/companies" + """ + { + "name": "zzz company", + "contact_name": "zzz company", + "contact_email": "contact@zzz.com", + "phone": "99999999" + } + """ + Then we get response code 201 + When we get "/companies" + Then we get existing resource + """ + { + "_items" : + [ + { + "name": "zzz company", + "contact_name": "zzz company", + "country": "CAN", + "contact_email": "contact@zzz.com", + "phone": "99999999" + } + ] + } + """ + \ No newline at end of file