about summary refs log tree commit diff
path: root/spec/routing
diff options
context:
space:
mode:
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/api_timelines_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/routing/api_timelines_spec.rb b/spec/routing/api_timelines_spec.rb
new file mode 100644
index 000000000..31717209f
--- /dev/null
+++ b/spec/routing/api_timelines_spec.rb
@@ -0,0 +1,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