about summary refs log tree commit diff
path: root/spec/controllers/activitypub/outboxes_controller_spec.rb
blob: 47460b22ce63f69e53036cc464bb84f0c1f90987 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'rails_helper'

RSpec.describe ActivityPub::OutboxesController, type: :controller do
  let!(:account) { Fabricate(:account) }

  before do
    Fabricate(:status, account: account)
  end

  describe 'GET #show' do
    before do
      get :show, params: { account_username: account.username }
    end

    it 'returns http success' do
      expect(response).to have_http_status(200)
    end

    it 'returns application/activity+json' do
      expect(response.content_type).to eq 'application/activity+json'
    end
  end
end