2017-04-13 21:09:07 +10:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2023-02-18 13:25:47 +11:00
|
|
|
describe 'Well Known routes' do
|
|
|
|
describe 'the host-meta route' do
|
|
|
|
it 'routes to correct place with xml format' do
|
|
|
|
expect(get('/.well-known/host-meta'))
|
|
|
|
.to route_to('well_known/host_meta#show', format: 'xml')
|
|
|
|
end
|
2017-04-13 21:09:07 +10:00
|
|
|
end
|
|
|
|
|
2023-02-18 13:25:47 +11:00
|
|
|
describe 'the webfinger route' do
|
|
|
|
it 'routes to correct place with json format' do
|
|
|
|
expect(get('/.well-known/webfinger'))
|
|
|
|
.to route_to('well_known/webfinger#show')
|
|
|
|
end
|
2017-04-13 21:09:07 +10:00
|
|
|
end
|
|
|
|
end
|