-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LG-15603: Add local Attribute for Account creation (#11575)
* changelog: Upcoming Features, Authentication, Threatmetrix API add local_attribute_1 for user when available * change strong migration back * remove &. for service provider * add new line
- Loading branch information
Showing
6 changed files
with
33 additions
and
3 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
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
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 |
---|---|---|
|
@@ -81,6 +81,25 @@ | |
expected_json = JSON.parse(LexisNexisFixtures.ddp_authentication_request_json) | ||
expect(response_json).to eq(expected_json) | ||
end | ||
|
||
context 'with service provider associated with user' do | ||
let(:applicant) do | ||
{ | ||
threatmetrix_session_id: 'UNIQUE_SESSION_ID', | ||
email: '[email protected]', | ||
request_ip: '127.0.0.1', | ||
uuid_prefix: 'SPNUM', | ||
} | ||
end | ||
|
||
it 'returns a properly formed request body' do | ||
response_json = JSON.parse(subject.body) | ||
|
||
base_json = JSON.parse(LexisNexisFixtures.ddp_authentication_request_json) | ||
expected_json = base_json.merge({ 'local_attrib_1' => 'SPNUM' }) | ||
expect(response_json).to eq(expected_json) | ||
end | ||
end | ||
end | ||
end | ||
|
||
|