
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
RSpec request spec post an empty array
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
RSpec request spec post an empty array
I am current developing an API endpoint in rails. I want to be sure the endpoint response with th... I am current developing an API endpoint in rails. I want to be sure the endpoint response with the correct error status if the data I need is invalid. I need an array of ids. One of the invalid values is an empty array. Valid { vendor_district_ids: [2, 4, 5, 6]} Invalid { vendor_district_ids: []} Request Spec with RSpec So I want to have a request spec to control my behaviour. require 'rails_helpe