Browse Source

Tidy

pull/2672/head
Rachael Booth 9 months ago
parent
commit
4901547d03
  1. 2
      app/models/form/page.rb
  2. 4
      app/models/form/question.rb
  3. 4
      spec/models/form/sales/questions/buyer_company_spec.rb

2
app/models/form/page.rb

@ -1,5 +1,5 @@
class Form::Page
attr_accessor :id, :header, :header_partial, :description, :questions, :depends_on, :title_text,
attr_accessor :id, :header_partial, :description, :questions, :depends_on, :title_text,
:informative_text, :subsection, :hide_subsection_label, :next_unresolved_page_id,
:skip_text, :interruption_screen_question_ids, :submit_text

4
app/models/form/question.rb

@ -1,7 +1,7 @@
class Form::Question
attr_accessor :id, :header, :hint_text, :description, :questions, :disable_clearing_if_not_routed_or_dynamic_answer_options,
attr_accessor :id, :description, :questions, :disable_clearing_if_not_routed_or_dynamic_answer_options,
:type, :min, :max, :step, :width, :fields_to_add, :result_field,
:conditional_for, :readonly, :answer_options, :page, :check_answer_label,
:conditional_for, :readonly, :answer_options, :page,
:inferred_answers, :hidden_in_check_answers, :inferred_check_answers_value,
:top_guidance_partial, :bottom_guidance_partial, :prefix, :suffix,
:requires_js, :fields_added, :derived, :check_answers_card_number,

4
spec/models/form/sales/questions/buyer_company_spec.rb

@ -27,10 +27,6 @@ RSpec.describe Form::Sales::Questions::BuyerCompany, type: :model do
expect(question.derived?(nil)).to be false
end
it "has the correct hint_text" do
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do
expect(question.answer_options).to eq({
"1" => { "value" => "Yes" },

Loading…
Cancel
Save