about summary refs log tree commit diff
path: root/spec/routing/api_timelines_spec.rb
blob: 31717209f084a13e77ff1c74cf39de0f11dbcf4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'rails_helper'

describe 'API timeline routes' do
  it 'routes to home timeline' do
    expect(get('/api/v1/timelines/home')).
      to route_to('api/v1/timelines/home#show')
  end

  it 'routes to public timeline' do
    expect(get('/api/v1/timelines/public')).
      to route_to('api/v1/timelines/public#show')
  end

  it 'routes to tag timeline' do
    expect(get('/api/v1/timelines/tag/test')).
      to route_to('api/v1/timelines/tag#show', id: 'test')
  end
end