logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

outboxes_controller_spec.rb (537B)


  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(:success)
  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