Add content type checks to api/v2 request specs (#31983)
This commit is contained in:
@@ -21,6 +21,8 @@ RSpec.describe 'Suggestions API' do
|
||||
get '/api/v2/suggestions', headers: headers
|
||||
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
|
||||
expect(response.parsed_body).to match_array(
|
||||
[bob, jeff].map do |account|
|
||||
|
||||
Reference in New Issue
Block a user