outboxes_controller_spec.rb 532 B

1234567891011121314151617181920212223
  1. require 'rails_helper'
  2. RSpec.describe ActivityPub::OutboxesController, type: :controller do
  3. let!(:account) { Fabricate(:account) }
  4. before do
  5. Fabricate(:status, account: account)
  6. end
  7. describe 'GET #show' do
  8. before do
  9. get :show, params: { account_username: account.username }
  10. end
  11. it 'returns http success' do
  12. expect(response).to have_http_status(200)
  13. end
  14. it 'returns application/activity+json' do
  15. expect(response.content_type).to eq 'application/activity+json'
  16. end
  17. end
  18. end