File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11class FormCopyService
22 include LoggingHelper
33
4- DONT_COPY = %i[ created_at updated_at submission_email ] . freeze
4+ DONT_COPY = %i[ created_at updated_at first_made_live_at submission_email ] . freeze
55 TO_EXCLUDE = Form ::ATTRIBUTES_NOT_IN_FORM_DOCUMENT + DONT_COPY
66
77 def initialize ( form , logged_in_user )
Original file line number Diff line number Diff line change 5454 expect ( copied_form . updated_at ) . not_to eq ( source_form . updated_at )
5555 end
5656
57+ it "does not copy attributes that we exclude from copying" do
58+ expect ( copied_form . first_made_live_at ) . to be_nil
59+ expect ( copied_form . submission_email ) . to be_nil
60+ end
61+
5762 context "when source form has completed tasks" do
5863 before do
5964 source_form . update! (
You can’t perform that action at this time.
0 commit comments