Skip to content

Commit

Permalink
Reintroduce privacy_policy_acceptance_field (#1253)
Browse files Browse the repository at this point in the history
* Reintroduce privacy_policy_acceptance_field

* Fix spec
  • Loading branch information
njaeggi authored and amaierhofer committed Nov 22, 2024
1 parent b085989 commit 172eafd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
= ff.hidden_field(:public)
= ff.hidden_field(:translated_label)
= ff.hidden_field(:_destroy, value: false)
= render('people/privacy_policy_acceptance_field', policy_finder: @policy_finder, f: f)

.well=t('.overrides_person_data_info')
.well.align-with-form=t('.overrides_person_data_info')
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
include FormatHelper

let(:participation_contact_data) { Event::ParticipationContactData.new(events(:top_course), people(:mitglied)) }
let(:policy_finder) { double(:policy_finder, acceptance_needed?: true, groups: []) }
let(:form_builder) { StandardFormBuilder.new(:participation_contact_data, participation_contact_data, view, {}) }

before do
allow(form_builder).to receive(:fields_for).and_return([])
allow(view).to receive_messages(f: form_builder, entry: participation_contact_data, phone_numbers: [])
assign(:policy_finder, policy_finder)
end

let(:dom) {
Expand Down

0 comments on commit 172eafd

Please sign in to comment.