-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow more first name searches when alternate identities exist but ar…
…e all stanford or blank institutio
- Loading branch information
Showing
4 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,26 @@ | |
end | ||
end | ||
|
||
factory :author_duped_last_name, parent: :author do | ||
sunetid { FactoryBot.generate(:random_id) } | ||
cap_profile_id { FactoryBot.generate(:random_id) } | ||
university_id { FactoryBot.generate(:random_id) } | ||
california_physician_license { FactoryBot.generate(:random_string) } | ||
active_in_cap { true } | ||
email { '[email protected]' } | ||
official_first_name { 'Albert' } | ||
official_last_name { 'Edler' } | ||
official_middle_name { '' } | ||
preferred_first_name { 'Albert' } | ||
preferred_last_name { 'Edler' } | ||
preferred_middle_name { '' } | ||
emails_for_harvest { '[email protected]' } | ||
end | ||
|
||
factory :inactive_author, parent: :author do | ||
active_in_cap { false } | ||
end | ||
|
||
factory :author_with_alternate_identities, parent: :author do | ||
transient do | ||
alt_count { 1 } # default number of alternate identities to create | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters