Browse Source

styling

pull/1125/head
Kat 4 years ago
parent
commit
f653c169a7
  1. 1
      app/models/form/sales/questions/previous_postcode.rb
  2. 4
      spec/models/form/sales/questions/previous_postcode_spec.rb

1
app/models/form/sales/questions/previous_postcode.rb

@ -6,6 +6,7 @@ class Form::Sales::Questions::PreviousPostcode < ::Form::Question
@header = "Postcode"
@page = page
@type = "text"
@width = 5
@hint_text = "This is also known as the household’s 'last settled home'"
@inferred_check_answers_value = {
"condition" => {

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

@ -35,6 +35,10 @@ RSpec.describe Form::Sales::Questions::PreviousPostcode, type: :model do
expect(question.hint_text).to eq("This is also known as the household’s 'last settled home'")
end
it "has the correct width" do
expect(question.width).to eq(5)
end
it "has the correct inferred_answers" do
expect(question.inferred_answers).to eq({
"prevloc" => {

Loading…
Cancel
Save