Set correct content-type for ActivityPub JSON (#4592)
This commit is contained in:
@ -48,6 +48,10 @@ RSpec.describe AccountsController, type: :controller do
|
||||
it 'returns http success with Activity Streams 2.0' do
|
||||
expect(response).to have_http_status(:success)
|
||||
end
|
||||
|
||||
it 'returns application/activity+json' do
|
||||
expect(response.content_type).to eq 'application/activity+json'
|
||||
end
|
||||
end
|
||||
|
||||
context 'html' do
|
||||
|
@ -15,5 +15,9 @@ RSpec.describe ActivityPub::OutboxesController, type: :controller do
|
||||
it 'returns http success' do
|
||||
expect(response).to have_http_status(:success)
|
||||
end
|
||||
|
||||
it 'returns application/activity+json' do
|
||||
expect(response.content_type).to eq 'application/activity+json'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user