Skip to content

Commit 1f67d05

Browse files
committed
PC-82: Fix test
1 parent 7a6fe09 commit 1f67d05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/requests/api/v1/customers_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@
7676
it "rejects empty company_name" do
7777
post "/api/v1/customers/upsert", params: empty_params.to_json, headers: headers
7878
expect(response).to have_http_status(:unprocessable_entity)
79-
expect(json_response["errors"]).to include("Company name can't be blank")
79+
expect(json_response["errors"]).to include({"company_name" => ["Company name can't be blank"]})
8080
end
8181

8282
it "rejects whitespace-only company_name" do
8383
post "/api/v1/customers/upsert", params: whitespace_params.to_json, headers: headers
8484
expect(response).to have_http_status(:unprocessable_entity)
85-
expect(json_response["errors"]).to include("Company name can't be blank")
85+
expect(json_response["errors"]).to include({"company_name" => ["Company name can't be blank"]})
8686
end
8787
end
8888

0 commit comments

Comments
 (0)