This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
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
|
|
|
|
expect(response).to have_http_status(:success)
|
|
|
|
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
|