Skip to content

Commit

Permalink
Merge pull request #1834 from DFE-Digital/missing-contact-name
Browse files Browse the repository at this point in the history
Alias firstname/lastname on MissingContact
  • Loading branch information
ethax-ross authored Jul 26, 2021
2 parents ec00929 + 3e52d59 commit 22c1969
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/bookings/gitis/missing_contact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def full_name
end
alias_method :firstname, :full_name
alias_method :lastname, :full_name
alias_method :first_name, :full_name
alias_method :last_name, :full_name

def emailaddress2
nil
Expand Down
2 changes: 2 additions & 0 deletions spec/services/bookings/gitis/missing_contact_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
it { is_expected.to have_attributes contactid: uuid, id: uuid }
it { is_expected.to have_attributes firstname: 'Unavailable' }
it { is_expected.to have_attributes lastname: 'Unavailable' }
it { is_expected.to have_attributes first_name: 'Unavailable' }
it { is_expected.to have_attributes first_name: 'Unavailable' }
it { is_expected.to have_attributes full_name: 'Unavailable' }
it { is_expected.to have_attributes birthdate: nil }
it { is_expected.to have_attributes date_of_birth: nil }
Expand Down

0 comments on commit 22c1969

Please sign in to comment.