The code powering m.abunchtell.com https://m.abunchtell.com
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

24 righe
537 B

  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