Add content type checks to api/v2 request specs (#31983)
This commit is contained in:
1 parent
171394e914
commit
d55f4fbda1
12 files changed
+188
No files matched your search
@@ -15,6 +15,9 @@ RSpec.describe 'Instances' do
|
||||
expect(response)
|
||||
.to have_http_status(200)
|
||||
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
|
||||
expect(response.parsed_body)
|
||||
.to be_present
|
||||
.and include(title: 'Mastodon')
|
||||
@@ -30,6 +33,9 @@ RSpec.describe 'Instances' do
|
||||
expect(response)
|
||||
.to have_http_status(200)
|
||||
|
||||
expect(response.content_type)
|
||||
.to start_with('application/json')
|
||||
|
||||
expect(response.parsed_body)
|
||||
.to be_present
|
||||
.and include(title: 'Mastodon')
|
||||
|
||||
Reference in new issue
Block a user