|
|
|
|
@ -131,6 +131,10 @@ RSpec.describe Form::Lettings::Questions::PersonPartner, type: :model do
|
|
|
|
|
it "has the correct hidden_in_check_answers?" do |
|
|
|
|
expect(question.hidden_in_check_answers?(log)).to eq(false) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "is not marked as derived" do |
|
|
|
|
expect(question.derived?(log)).to be false |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "and in 2026", metadata: { year: 26 } do |
|
|
|
|
@ -139,6 +143,10 @@ RSpec.describe Form::Lettings::Questions::PersonPartner, type: :model do
|
|
|
|
|
it "has the correct hidden_in_check_answers?" do |
|
|
|
|
expect(question.hidden_in_check_answers?(log)).to eq(true) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "is marked as derived" do |
|
|
|
|
expect(question.derived?(log)).to be true |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
@ -151,6 +159,10 @@ RSpec.describe Form::Lettings::Questions::PersonPartner, type: :model do
|
|
|
|
|
it "has the correct hidden_in_check_answers?" do |
|
|
|
|
expect(question.hidden_in_check_answers?(log)).to eq(false) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "is not marked as derived" do |
|
|
|
|
expect(question.derived?(log)).to be false |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "and in 2026", metadata: { year: 26 } do |
|
|
|
|
@ -159,6 +171,10 @@ RSpec.describe Form::Lettings::Questions::PersonPartner, type: :model do
|
|
|
|
|
it "has the correct hidden_in_check_answers?" do |
|
|
|
|
expect(question.hidden_in_check_answers?(log)).to eq(false) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "is not marked as derived" do |
|
|
|
|
expect(question.derived?(log)).to be false |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
@ -183,6 +199,10 @@ RSpec.describe Form::Lettings::Questions::PersonPartner, type: :model do
|
|
|
|
|
it "has the correct hidden_in_check_answers?" do |
|
|
|
|
expect(question.hidden_in_check_answers?(log)).to eq(false) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "is not marked as derived" do |
|
|
|
|
expect(question.derived?(log)).to be false |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "and in 2026", metadata: { year: 26 } do |
|
|
|
|
@ -191,6 +211,10 @@ RSpec.describe Form::Lettings::Questions::PersonPartner, type: :model do
|
|
|
|
|
it "has the correct hidden_in_check_answers?" do |
|
|
|
|
expect(question.hidden_in_check_answers?(log)).to eq(true) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "is marked as derived" do |
|
|
|
|
expect(question.derived?(log)).to be true |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
@ -203,6 +227,10 @@ RSpec.describe Form::Lettings::Questions::PersonPartner, type: :model do
|
|
|
|
|
it "has the correct hidden_in_check_answers?" do |
|
|
|
|
expect(question.hidden_in_check_answers?(log)).to eq(false) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "is not marked as derived" do |
|
|
|
|
expect(question.derived?(log)).to be false |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "and in 2026", metadata: { year: 26 } do |
|
|
|
|
@ -211,6 +239,10 @@ RSpec.describe Form::Lettings::Questions::PersonPartner, type: :model do
|
|
|
|
|
it "has the correct hidden_in_check_answers?" do |
|
|
|
|
expect(question.hidden_in_check_answers?(log)).to eq(false) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "is not marked as derived" do |
|
|
|
|
expect(question.derived?(log)).to be false |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|