|
|
|
@ -23,14 +23,6 @@ RSpec.describe Form::Sales::Questions::PrivacyNotice, type: :model do
|
|
|
|
|
expect(question.id).to eq("privacynotice") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct header" do |
|
|
|
|
expect(question.header).to eq("Declaration") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct check_answer_label" do |
|
|
|
|
expect(question.check_answer_label).to eq("Buyer has seen the privacy notice?") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct type" do |
|
|
|
|
expect(question.type).to eq("checkbox") |
|
|
|
|
end |
|
|
|
@ -39,10 +31,6 @@ RSpec.describe Form::Sales::Questions::PrivacyNotice, type: :model do
|
|
|
|
|
expect(question.derived?(nil)).to be false |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct hint" do |
|
|
|
|
expect(question.hint_text).to be_nil |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "when the form year is before 2024" do |
|
|
|
|
before do |
|
|
|
|
allow(form).to receive(:start_year_after_2024?).and_return(false) |
|
|
|
|