Combine repeated parsed_body assertions into single (#32002)
This commit is contained in:
parent
5fae1d55e5
commit
e0b45b35c9
3 changed files with 22 additions and 12 deletions
|
@ -41,8 +41,9 @@ RSpec.describe 'Credentials' do
|
|||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
|
||||
expect(response.parsed_body[:client_id]).to_not be_present
|
||||
expect(response.parsed_body[:client_secret]).to_not be_present
|
||||
expect(response.parsed_body)
|
||||
.to not_include(client_id: be_present)
|
||||
.and not_include(client_secret: be_present)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue