expect(question.check_answer_label).toeq("Is this a resale?")
end
it"has the correct type"do
expect(question.type).toeq("radio")
end
it"is not marked as derived"do
expect(question.derived?).tobefalse
end
it"has the correct answer_options"do
expect(question.answer_options).toeq({
"1"=>{"value"=>"Yes"},
"2"=>{"value"=>"No"},
})
end
it"has correct conditional for"do
expect(question.conditional_for).toeq(nil)
end
it"has the correct hint"do
expect(question.hint_text).toeq("If the social landlord has previously sold the property to another buyer and is now reselling the property, select 'yes'. If this is the first time the property has been sold, select 'no'.")