Commit fb85d76
committed
Fix unprocessable entity deprecation warning
I'm seeing this deprecation when using newer versions of `rack` with
request specs that use the `have_http_status` matcher [1] from newer
versions (v8?) of `rspec-rails`.
Status code :unprocessable_entity is deprecated and will be
removed in a future version of Rack.
Please use :unprocessable_content instead.
The `:unprocessable_entity` symbol was deprecated in `rack` in this
commit [2] which was released in `rack` v3.1.0 [3].
[1]: https://rspec.info/features/8-0/rspec-rails/matchers/have-http-status-matcher/
[2]: rack/rack#2137
[3]: https://github.com/rack/rack/blob/ee7ac5a1db5bc5c65e4b83342b8f4df88ef3c075/CHANGELOG.md#310---2024-06-111 parent 7993d8a commit fb85d76
2 files changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments