From 21341bdac14b653c7e01ae85170929dfc3b95978 Mon Sep 17 00:00:00 2001
From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com>
Date: Mon, 27 Feb 2023 11:09:33 +0000
Subject: [PATCH] Make privacy notice mandatory (#1351)
---
app/models/form/sales/pages/privacy_notice.rb | 3 ---
.../imports/sales_logs/discounted_ownership_sales_log.xml | 3 +--
spec/models/form/sales/pages/privacy_notice_spec.rb | 2 +-
3 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/app/models/form/sales/pages/privacy_notice.rb b/app/models/form/sales/pages/privacy_notice.rb
index a41800194..dc4bfa70d 100644
--- a/app/models/form/sales/pages/privacy_notice.rb
+++ b/app/models/form/sales/pages/privacy_notice.rb
@@ -3,9 +3,6 @@ class Form::Sales::Pages::PrivacyNotice < ::Form::Page
super
@id = "privacy_notice"
@header = "Department for Levelling Up, Housing and Communities privacy notice"
- @depends_on = [{
- "noint" => 2,
- }]
end
def questions
diff --git a/spec/fixtures/imports/sales_logs/discounted_ownership_sales_log.xml b/spec/fixtures/imports/sales_logs/discounted_ownership_sales_log.xml
index 575f93887..bc1d5f274 100644
--- a/spec/fixtures/imports/sales_logs/discounted_ownership_sales_log.xml
+++ b/spec/fixtures/imports/sales_logs/discounted_ownership_sales_log.xml
@@ -14,8 +14,7 @@
-
-
+ Yes
2023-02-01
Discount ownership example
diff --git a/spec/models/form/sales/pages/privacy_notice_spec.rb b/spec/models/form/sales/pages/privacy_notice_spec.rb
index 86a214bfa..d8e25a3d8 100644
--- a/spec/models/form/sales/pages/privacy_notice_spec.rb
+++ b/spec/models/form/sales/pages/privacy_notice_spec.rb
@@ -28,6 +28,6 @@ RSpec.describe Form::Sales::Pages::PrivacyNotice, type: :model do
end
it "has correct depends_on" do
- expect(page.depends_on).to eq([{ "noint" => 2 }])
+ expect(page.depends_on).to be_nil
end
end