2017-08-08 12:52:15 -07:00
|
|
|
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
|
2018-04-21 12:35:07 -07:00
|
|
|
expect(response).to have_http_status(200)
|
2017-08-08 12:52:15 -07:00
|
|
|
end
|
2017-08-13 19:16:43 -07:00
|
|
|
|
|
|
|
it 'returns application/activity+json' do
|
|
|
|
expect(response.content_type).to eq 'application/activity+json'
|
|
|
|
end
|
2017-08-08 12:52:15 -07:00
|
|
|
end
|
|
|
|
end
|