闭社主体 forked from https://github.com/tootsuite/mastodon
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.

23 lines
532 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(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