about summary refs log blame commit diff
path: root/spec/routing/well_known_routes_spec.rb
blob: 7474633515f78ae287960924b878c78bbbff342b (plain) (tree)
1
2
3
4
5
6
7
8
9
                      




                                                                
     
 



                                                    
     
require 'rails_helper'

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
  end

  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
  end
end