2
0

Replace unprocessable_entity -> unprocessable_content (#35658)

This commit is contained in:
Matt Jankowski
2025-08-05 03:42:08 -04:00
committed by GitHub
parent 5318957ab3
commit 8131268256
5 changed files with 10 additions and 10 deletions

View File

@@ -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