Browse Source

update tests

pull/909/head
Kat 4 years ago committed by natdeanlewissoftwire
parent
commit
2c7b00757c
  1. 1
      spec/factories/sales_log.rb
  2. 4
      spec/helpers/question_attribute_helper_spec.rb

1
spec/factories/sales_log.rb

@ -24,6 +24,7 @@ FactoryBot.define do
age1_known { 0 }
age1 { 30 }
sex1 { "X" }
national { 18 }
buy1livein { 1 }
relat2 { "P" }
proptype { 1 }

4
spec/helpers/question_attribute_helper_spec.rb

@ -40,7 +40,7 @@ RSpec.describe QuestionAttributeHelper do
"conditional_for" => {
"next_question": ">1",
},
}, nil)
}, form.get_page("rent"))
end
let(:expected_attribs) do
{
@ -48,7 +48,7 @@ RSpec.describe QuestionAttributeHelper do
"data-action": "input->numeric-question#calculateFields click->conditional-question#displayConditional",
"data-target": "lettings-log-#{question.result_field.to_s.dasherize}-field",
"data-calculated": question.fields_to_add.to_json,
"data-info": question.conditional_for.to_json,
"data-info": { conditional_questions: question.conditional_for, log_type: "lettings" }.to_json
}
end

Loading…
Cancel
Save