Replace obsolete HTTP status code :unprocessable_entity
The new naming is :unprocessable_content and required by Rack 3.1+
This commit is contained in:

committed by
Sebastian Serth

parent
4e1e8c0f4d
commit
092487344a
@ -58,7 +58,7 @@ RSpec.describe CodeOcean::FilesController do
|
||||
|
||||
expect_assigns(file: CodeOcean::File)
|
||||
expect_json
|
||||
expect_http_status(:unprocessable_entity)
|
||||
expect_http_status(:unprocessable_content)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -29,13 +29,13 @@ RSpec.describe EventsController do
|
||||
before { post :create, params: {event: {exercise_id: 847_482}} }
|
||||
|
||||
expect_assigns(event: Event)
|
||||
expect_http_status(:unprocessable_entity)
|
||||
expect_http_status(:unprocessable_content)
|
||||
end
|
||||
|
||||
context 'with no event' do
|
||||
before { post :create }
|
||||
|
||||
expect_http_status(:unprocessable_entity)
|
||||
expect_http_status(:unprocessable_content)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -36,7 +36,7 @@ RSpec.describe SubmissionsController do
|
||||
|
||||
expect_assigns(submission: Submission)
|
||||
expect_json
|
||||
expect_http_status(:unprocessable_entity)
|
||||
expect_http_status(:unprocessable_content)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user