0
0
Fork 0

Support /.well-known/host-meta.json (#32206)

This commit is contained in:
Christian Schmidt 2024-10-02 11:23:44 +02:00 committed by GitHub
parent f0716368e6
commit 33d3ca7cf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 55 additions and 14 deletions

View file

@ -4,9 +4,14 @@ require 'rails_helper'
RSpec.describe 'Well Known routes' do
describe 'the host-meta route' do
it 'routes to correct place with xml format' do
it 'routes to correct place' do
expect(get('/.well-known/host-meta'))
.to route_to('well_known/host_meta#show', format: 'xml')
.to route_to('well_known/host_meta#show')
end
it 'routes to correct place with json format' do
expect(get('/.well-known/host-meta.json'))
.to route_to('well_known/host_meta#show', format: 'json')
end
end