Skip to content

Commit 6c5a8c0

Browse files
committed
Fix tests broken changes to Page.as_form_document_step
We broke some tests by changing the output of Page.as_form_document_step. We could have avoided this by only changing the output for welsh forms.
1 parent fb80094 commit 6c5a8c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/services/reports/questions_csv_report_service_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"true",
116116
"2",
117117
nil,
118-
"{\"only_one_option\" => \"true\", \"selection_options\" => [{\"name\" => \"Option 1\"}, {\"name\" => \"Option 2\"}]}",
118+
"{\"only_one_option\" => \"true\", \"selection_options\" => [{\"name\" => \"Option 1\", \"value\" => \"Option 1\"}, {\"name\" => \"Option 2\", \"value\" => \"Option 2\"}]}",
119119
)
120120
end
121121

@@ -175,7 +175,7 @@
175175
"true",
176176
"2",
177177
nil,
178-
"{\"only_one_option\" => \"true\", \"selection_options\" => [{\"name\" => \"Option 1\"}, {\"name\" => \"Option 2\"}]}",
178+
"{\"only_one_option\" => \"true\", \"selection_options\" => [{\"name\" => \"Option 1\", \"value\" => \"Option 1\"}, {\"name\" => \"Option 2\", \"value\" => \"Option 2\"}]}",
179179
)
180180
end
181181

@@ -205,7 +205,7 @@
205205
"true",
206206
"2",
207207
nil,
208-
"{\"only_one_option\" => \"true\", \"selection_options\" => [{\"name\" => \"Option 1\"}, {\"name\" => \"Option 2\"}]}",
208+
"{\"only_one_option\" => \"true\", \"selection_options\" => [{\"name\" => \"Option 1\", \"value\" => \"Option 1\"}, {\"name\" => \"Option 2\", \"value\" => \"Option 2\"}]}",
209209
)
210210
end
211211
end

0 commit comments

Comments
 (0)