Skip to content

Commit

Permalink
Move api/v1/timelines/direct to request spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Feb 24, 2024
1 parent 9903e6b commit 73de363
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
17 changes: 0 additions & 17 deletions spec/controllers/api/v1/timelines/direct_controller_spec.rb

This file was deleted.

18 changes: 18 additions & 0 deletions spec/requests/api/v1/timelines/direct_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# frozen_string_literal: true

require 'rails_helper'

describe 'API V1 Direct Timeline' do
let(:user) { Fabricate(:user) }
let(:scopes) { 'read:statuses' }
let(:token) { Fabricate(:accessible_access_token, resource_owner_id: user.id, scopes: scopes) }
let(:headers) { { 'Authorization' => "Bearer #{token.token}" } }

describe 'GET /api/v1/timelines/direct' do
it 'returns 200' do
get '/api/v1/timelines/direct', headers: headers

expect(response).to have_http_status(200)
end
end
end

0 comments on commit 73de363

Please sign in to comment.