闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
425 B

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