Fix API controller tests by assigning them the encoding type
- Fixes #25183. - The `as: :json` feature was added in https://github.com/rails/rails/pull/21671 and recommended to use for JSON endpoints so let's use it by default for API controller tests.
Showing
想要评论请 注册 或 登录