This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-08-08 21:52:15 +02: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 21:35:07 +02:00
|
|
|
expect(response).to have_http_status(200)
|
2017-08-08 21:52:15 +02:00
|
|
|
end
|
2017-08-14 04:16:43 +02:00
|
|
|
|
|
|
|
it 'returns application/activity+json' do
|
|
|
|
expect(response.content_type).to eq 'application/activity+json'
|
|
|
|
end
|
2017-08-08 21:52:15 +02:00
|
|
|
end
|
|
|
|
end
|