Browse Source

...and again

pull/2672/head
Rachael Booth 9 months ago
parent
commit
dc2c7d5d8d
  1. 12
      spec/models/form/sales/questions/privacy_notice_spec.rb

12
spec/models/form/sales/questions/privacy_notice_spec.rb

@ -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)

Loading…
Cancel
Save