Skip to content

Commit 345256d

Browse files
thomasileshannahkc
andcommitted
Add missing comma to routes error message
Co-authored-by: Hannah Content <hannah.cooper@digital.cabinet-office.gov.uk>
1 parent a81376c commit 345256d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/locales/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ en:
367367
prefix: 'Error:'
368368
routes:
369369
cannot_route_backwards_from_generic_page: The route from question %{question_number} cannot go to a previous question - edit this route
370-
cannot_route_backwards_from_selection_page: The route from question %{question_number}, option %{option_number}, cannot go to a previous question - edit this route
370+
cannot_route_backwards_from_selection_page: The route from question %{question_number}, option %{option_number} cannot go to a previous question - edit this route
371371
page_list:
372372
cannot_route_backwards_from_generic_page: The route from question %{question_number} cannot go to a previous question - edit this route
373373
cannot_route_backwards_from_selection_page:

spec/input_objects/forms/route_input_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129

130130
it "adds the correct error" do
131131
expect(route_input).to be_invalid
132-
expect(route_input.errors[:goto]).to eq(["The route from question 2, option 1, cannot go to a previous question - edit this route"])
132+
expect(route_input.errors[:goto]).to eq(["The route from question 2, option 1 cannot go to a previous question - edit this route"])
133133
end
134134
end
135135

0 commit comments

Comments
 (0)