We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8df4277 commit f666956Copy full SHA for f666956
1 file changed
spec/controllers/activitypub/inboxes_controller_spec.rb
@@ -1,7 +1,29 @@
1
+# frozen_string_literal: true
2
+
3
require 'rails_helper'
4
5
RSpec.describe ActivityPub::InboxesController, type: :controller do
6
describe 'POST #create' do
- pending
7
+ context 'if signed_request_account' do
8
+ it 'returns 202' do
9
+ allow(controller).to receive(:signed_request_account) do
10
+ Fabricate(:account)
11
+ end
12
13
+ post :create
14
+ expect(response).to have_http_status(202)
15
16
17
18
+ context 'not signed_request_account' do
19
+ it 'returns 401' do
20
21
+ false
22
23
24
25
+ expect(response).to have_http_status(401)
26
27
28
end
29
0 commit comments