-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nbp): let user know if required attributes are missing
- test(enmeshed): add test for invalid free text input in the status group Part of XI-6523
- Loading branch information
Showing
3 changed files
with
57 additions
and
23 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 |
---|---|---|
|
@@ -105,6 +105,17 @@ | |
end | ||
end | ||
|
||
context 'with gibberish as status group' do | ||
before do | ||
response_items.last[:attribute][:value][:value] = 'gibberish' | ||
end | ||
|
||
it 'returns `nil` as the status group' do | ||
expect(userdata).to eq({email: '[email protected]', first_name: 'John', last_name: 'Oliver', | ||
status_group: nil}) | ||
end | ||
end | ||
|
||
context 'with a blank attribute' do | ||
before do | ||
json[:@type] | ||
|
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