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.

39 lines
890 B

  1. require 'rails_helper'
  2. RSpec.describe Api::StatusesController, type: :controller do
  3. let(:user) { Fabricate(:user, account: Fabricate(:account, username: 'alice')) }
  4. let(:token) { double acceptable?: true, resource_owner_id: user.id }
  5. before do
  6. allow(controller).to receive(:doorkeeper_token) { token }
  7. end
  8. describe 'GET #show' do
  9. let(:status) { Fabricate(:status, account: user.account) }
  10. it 'returns http success' do
  11. get :show, params: { id: status.id }
  12. expect(response).to have_http_status(:success)
  13. end
  14. end
  15. describe 'GET #home' do
  16. it 'returns http success'
  17. end
  18. describe 'GET #mentions' do
  19. it 'returns http success'
  20. end
  21. describe 'POST #create' do
  22. it 'returns http success'
  23. end
  24. describe 'POST #reblog' do
  25. it 'returns http success'
  26. end
  27. describe 'POST #favourite' do
  28. it 'returns http success'
  29. end
  30. end