From 65430e25781d61f05296e67f442e543eb4757633 Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 8 Mar 2022 17:06:17 +0000 Subject: [PATCH] Reset earnings question prefix and suffix to initial values instead of nil --- spec/views/form/page_view_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/views/form/page_view_spec.rb b/spec/views/form/page_view_spec.rb index 5f653dfa6..252416974 100644 --- a/spec/views/form/page_view_spec.rb +++ b/spec/views/form/page_view_spec.rb @@ -7,7 +7,7 @@ RSpec.describe "form/page" do let(:page) { form.get_page("net_income") } let(:question) { page.questions.find { |q| q.id == "earnings" } } let(:initial_page_attributes) { { description: nil, hide_subsection_label: nil } } - let(:initial_question_attributes) { { type: "numeric", answer_options: nil, prefix: nil, suffix: nil } } + let(:initial_question_attributes) { { type: "numeric", answer_options: nil, prefix: "£", suffix: " every week" } } let(:page_attributes) { {} } let(:question_attributes) { {} }