Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/account/contact_for_research_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def update
if @contact_for_research_input.submit
redirect_to next_path
else
render :edit, status: :unprocessable_entity
render :edit, status: :unprocessable_content
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/components/page_list_component/view_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
end

it "renders the route summary list key as a singular route" do
expect(page).to have_css("dt.govuk-summary-list__key", text: /Question #{first_page.position}’s route$/, exact: true)
expect(page).to have_css("dt.govuk-summary-list__key", text: /Question #{first_page.position}’s route$/)
end

it "renders the condition description" do
Expand All @@ -221,7 +221,7 @@
end

it "renders the route summary list key as plural routes" do
expect(page).to have_css("dt.govuk-summary-list__key", text: /Question #{first_page.position}’s routes$/, exact: true)
expect(page).to have_css("dt.govuk-summary-list__key", text: /Question #{first_page.position}’s routes$/)
end

it "renders the condition description" do
Expand Down
4 changes: 2 additions & 2 deletions spec/controllers/forms/copy_of_answers_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
context "when the send_copy_of_answers value is invalid" do
let(:send_copy_of_answers) { "invalid_value" }

it "renders the new template with unprocessable entity status" do
it "renders the new template with unprocessable content status" do
post(copy_of_answers_create_path(form_id: form.id), params:)
expect(response).to have_http_status(:unprocessable_entity)
expect(response).to have_http_status(:unprocessable_content)
expect(response).to have_rendered :new
expect(response.body).to include("Sorry, there was a problem. Please try again.")
end
Expand Down