fix: invalid params request test

fixes #999
This commit is contained in:
Philipp Rothmann 2023-06-17 13:30:07 +02:00
parent 4ac5bcae06
commit 913136bb72

View file

@ -48,10 +48,9 @@ describe 'User' do
end end
response '422', 'invalid parameter value' do response '422', 'invalid parameter value' do
xit 'TODO: fix controller to actually send a 422 for invalid params: https://github.com/foodcoops/foodsoft/issues/999' schema '$ref' => '#/components/schemas/Error422'
# schema '$ref' => '#/components/schemas/Error422' let(:financial_transaction) { { amount: "abc", financial_transaction_type_id: create(:financial_transaction_type).id, note: "foo bar" } }
# let(:financial_transaction) { { amount: -3, financial_transaction_type_id: create(:financial_transaction_type).id, note: -2 } } run_test!
# run_test!
end end
end end