|
284 | 284 |
|
285 | 285 | it "returns a 422 response" do |
286 | 286 | get form_page_path(mode:, form_id: 2, form_slug: form_data.form_slug, page_slug: 1) |
287 | | - expect(response).to have_http_status(:unprocessable_entity) |
| 287 | + expect(response).to have_http_status(:unprocessable_content) |
288 | 288 | end |
289 | 289 |
|
290 | 290 | it "shows the error page" do |
|
313 | 313 |
|
314 | 314 | it "returns a 422 response" do |
315 | 315 | get form_page_path(mode:, form_id: 2, form_slug: form_data.form_slug, page_slug: 4) |
316 | | - expect(response).to have_http_status(:unprocessable_entity) |
| 316 | + expect(response).to have_http_status(:unprocessable_content) |
317 | 317 | end |
318 | 318 |
|
319 | 319 | it "shows the error page" do |
|
331 | 331 |
|
332 | 332 | it "returns a 422 response" do |
333 | 333 | get form_page_path(mode:, form_id: 2, form_slug: form_data.form_slug, page_slug: 1) |
334 | | - expect(response).to have_http_status(:unprocessable_entity) |
| 334 | + expect(response).to have_http_status(:unprocessable_content) |
335 | 335 | end |
336 | 336 |
|
337 | 337 | it "shows the error page" do |
|
426 | 426 | end |
427 | 427 |
|
428 | 428 | it "returns 422" do |
429 | | - expect(response).to have_http_status(:unprocessable_entity) |
| 429 | + expect(response).to have_http_status(:unprocessable_content) |
430 | 430 | end |
431 | 431 |
|
432 | 432 | it "adds validation_errors logging attribute" do |
|
601 | 601 |
|
602 | 602 | it "returns a 422 response" do |
603 | 603 | post save_form_page_path(mode:, form_id: 2, form_slug: form_data.form_slug, page_slug: 1), params: { question: { selection: "Option 2" }, changing_existing_answer: false } |
604 | | - expect(response).to have_http_status(:unprocessable_entity) |
| 604 | + expect(response).to have_http_status(:unprocessable_content) |
605 | 605 | end |
606 | 606 |
|
607 | 607 | it "shows the error page" do |
|
0 commit comments