|
|
|
|
@ -133,6 +133,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 |
|
|
|
|
@ -141,6 +145,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 |
|
|
|
|
|
|
|
|
|
@ -153,6 +161,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 |
|
|
|
|
@ -161,6 +173,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 |
|
|
|
|
@ -185,6 +201,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 |
|
|
|
|
@ -193,6 +213,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 |
|
|
|
|
|
|
|
|
|
@ -205,6 +229,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 |
|
|
|
|
@ -213,6 +241,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 |
|
|
|
|
|