|
|
|
@ -34,6 +34,10 @@ RSpec.describe Form::Sales::Questions::UprnKnown, type: :model do
|
|
|
|
|
expect(question.conditional_for).to eq({ "uprn" => [1] }) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct unanswered_error_message" do |
|
|
|
|
expect(question.unanswered_error_message).to eq("You must answer UPRN known?") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct hidden_in_check_answers" do |
|
|
|
|
expect(question.hidden_in_check_answers).to eq({ |
|
|
|
|
"depends_on" => [ |
|
|
|
|