mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-20 17:23:17 +00:00
Replace unprocessable_entity -> unprocessable_content (#35658)
This commit is contained in:
parent
5318957ab3
commit
8131268256
5 changed files with 10 additions and 10 deletions
|
|
@ -219,16 +219,16 @@ RSpec.describe ApplicationController do
|
|||
it_behaves_like 'error response', 410
|
||||
end
|
||||
|
||||
describe 'unprocessable_entity' do
|
||||
describe 'unprocessable_content' do
|
||||
controller do
|
||||
def route_unprocessable_entity
|
||||
unprocessable_entity
|
||||
def route_unprocessable_content
|
||||
unprocessable_content
|
||||
end
|
||||
end
|
||||
|
||||
subject do
|
||||
routes.draw { get 'route_unprocessable_entity' => 'anonymous#route_unprocessable_entity' }
|
||||
get 'route_unprocessable_entity'
|
||||
routes.draw { get 'route_unprocessable_content' => 'anonymous#route_unprocessable_content' }
|
||||
get 'route_unprocessable_content'
|
||||
end
|
||||
|
||||
it_behaves_like 'error response', 422
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue