闭社主体 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.

18 lines
477 B

  1. require 'rails_helper'
  2. describe 'API timeline routes' do
  3. it 'routes to home timeline' do
  4. expect(get('/api/v1/timelines/home')).
  5. to route_to('api/v1/timelines/home#show')
  6. end
  7. it 'routes to public timeline' do
  8. expect(get('/api/v1/timelines/public')).
  9. to route_to('api/v1/timelines/public#show')
  10. end
  11. it 'routes to tag timeline' do
  12. expect(get('/api/v1/timelines/tag/test')).
  13. to route_to('api/v1/timelines/tag#show', id: 'test')
  14. end
  15. end