well_known_routes_spec.rb 500 B

12345678910111213141516171819
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe 'Well Known routes' do
  4. describe 'the host-meta route' do
  5. it 'routes to correct place with xml format' do
  6. expect(get('/.well-known/host-meta'))
  7. .to route_to('well_known/host_meta#show', format: 'xml')
  8. end
  9. end
  10. describe 'the webfinger route' do
  11. it 'routes to correct place with json format' do
  12. expect(get('/.well-known/webfinger'))
  13. .to route_to('well_known/webfinger#show')
  14. end
  15. end
  16. end