Browse Source

Reset earnings question prefix and suffix to initial values instead of nil

pull/338/head
Kat 3 years ago
parent
commit
6ac667e3d2
  1. 2
      spec/views/form/page_view_spec.rb

2
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) { {} }

Loading…
Cancel
Save