@ -61,6 +61,12 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model
it " has expected check answers card number " do
expect ( question . check_answers_card_number ) . to eq ( 2 )
end
it " has the correct inferred_check_answers_value " do
expect ( question . inferred_check_answers_value ) . to eq ( [
{ " condition " = > { " relat2 " = > " R " } , " value " = > " Prefers not to say " } ,
] )
end
end
context " and joint purchase " do
@ -86,6 +92,12 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model
it " has expected check answers card number " do
expect ( question . check_answers_card_number ) . to eq ( 3 )
end
it " has the correct inferred_check_answers_value " do
expect ( question . inferred_check_answers_value ) . to eq ( [
{ " condition " = > { " relat3 " = > " R " } , " value " = > " Prefers not to say " } ,
] )
end
end
end
@ -113,6 +125,12 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model
it " has expected check answers card number " do
expect ( question . check_answers_card_number ) . to eq ( 3 )
end
it " has the correct inferred_check_answers_value " do
expect ( question . inferred_check_answers_value ) . to eq ( [
{ " condition " = > { " relat3 " = > " R " } , " value " = > " Prefers not to say " } ,
] )
end
end
context " and joint purchase " do
@ -138,6 +156,12 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model
it " has expected check answers card number " do
expect ( question . check_answers_card_number ) . to eq ( 4 )
end
it " has the correct inferred_check_answers_value " do
expect ( question . inferred_check_answers_value ) . to eq ( [
{ " condition " = > { " relat4 " = > " R " } , " value " = > " Prefers not to say " } ,
] )
end
end
end
@ -165,6 +189,12 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model
it " has expected check answers card number " do
expect ( question . check_answers_card_number ) . to eq ( 4 )
end
it " has the correct inferred_check_answers_value " do
expect ( question . inferred_check_answers_value ) . to eq ( [
{ " condition " = > { " relat4 " = > " R " } , " value " = > " Prefers not to say " } ,
] )
end
end
context " and joint purchase " do
@ -190,6 +220,12 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model
it " has expected check answers card number " do
expect ( question . check_answers_card_number ) . to eq ( 5 )
end
it " has the correct inferred_check_answers_value " do
expect ( question . inferred_check_answers_value ) . to eq ( [
{ " condition " = > { " relat5 " = > " R " } , " value " = > " Prefers not to say " } ,
] )
end
end
end
@ -217,6 +253,12 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model
it " has expected check answers card number " do
expect ( question . check_answers_card_number ) . to eq ( 5 )
end
it " has the correct inferred_check_answers_value " do
expect ( question . inferred_check_answers_value ) . to eq ( [
{ " condition " = > { " relat5 " = > " R " } , " value " = > " Prefers not to say " } ,
] )
end
end
context " and joint purchase " do
@ -242,6 +284,12 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model
it " has expected check answers card number " do
expect ( question . check_answers_card_number ) . to eq ( 6 )
end
it " has the correct inferred_check_answers_value " do
expect ( question . inferred_check_answers_value ) . to eq ( [
{ " condition " = > { " relat6 " = > " R " } , " value " = > " Prefers not to say " } ,
] )
end
end
end
end