use guardian_address_street1 for old guardian_address
This commit is contained in:
@@ -121,7 +121,6 @@ describe Public::AppearanceReleasesController do
|
||||
def minor_appearance_release_params(with_guardian_photo = true)
|
||||
minor_type = with_guardian_photo ? :minor_with_guardian_photo : :minor
|
||||
attributes_for(:appearance_release, minor_type)
|
||||
.except(:guardian_address_old)
|
||||
.merge(signature_param, guardian_address_params)
|
||||
end
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ FactoryBot.define do
|
||||
# guardian_address_state "State"
|
||||
# guardian_address_zip "ZIP"
|
||||
# guardian_address_country "Country"
|
||||
guardian_address_old "St1 St2 City State ZIP Country"
|
||||
guardian_address_street1 "St1 St2 City State ZIP Country"
|
||||
guardian_photo do
|
||||
path = Rails.root.join("spec", "fixtures", "files", "pratt.jpg")
|
||||
Rack::Test::UploadedFile.new(path, "image/jpeg")
|
||||
|
||||
@@ -58,7 +58,6 @@ describe ContractTemplatePreview do
|
||||
'person_phone' => '00 111 222 333 4444',
|
||||
'updated_at' => nil,
|
||||
'minor' => true,
|
||||
'guardian_address_old' => nil,
|
||||
'guardian_address_street1' => 'Street 3',
|
||||
'guardian_address_street2' => 'Street 4',
|
||||
'guardian_address_city' => 'City-2',
|
||||
|
||||
Reference in New Issue
Block a user