@ -6,7 +6,8 @@ class Form::Sales::Questions::PreviousBedrooms < ::Form::Question
@header = "How many bedrooms did the property have?"
@type = "numeric"
@width = 5
@min = 0
@min = 1
@max = 6
@hint_text = "For bedsits enter 1"
end
@ -40,6 +40,10 @@ RSpec.describe Form::Sales::Questions::PreviousBedrooms, type: :model do
it "has correct min" do
expect(question.min).to eq(0)
expect(question.min).to eq(1)
it "has correct max" do
expect(question.max).to eq(6)