diff options
author | Matt Jankowski <matt@jankowski.online> | 2023-03-10 07:33:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 13:33:30 +0100 |
commit | 688287c59d526ef76089322a368789f5846c6ac3 (patch) | |
tree | 0a89ad3e71b45b123388898cc67f93ed5a022b91 /spec/controllers/activitypub/claims_controller_spec.rb | |
parent | 56bddfbfa39956ea3a8c52721eb364b1120634f6 (diff) |
Coverage improvement round-out following up previous work (#23987)
Diffstat (limited to 'spec/controllers/activitypub/claims_controller_spec.rb')
-rw-r--r-- | spec/controllers/activitypub/claims_controller_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/controllers/activitypub/claims_controller_spec.rb b/spec/controllers/activitypub/claims_controller_spec.rb new file mode 100644 index 000000000..f00eeb732 --- /dev/null +++ b/spec/controllers/activitypub/claims_controller_spec.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +require 'rails_helper' + +describe ActivityPub::ClaimsController do + let(:account) { Fabricate(:account) } + + describe 'POST #create' do + context 'without signature' do + before do + post :create, params: { account_username: account.username }, body: '{}' + end + + it 'returns http not authorized' do + expect(response).to have_http_status(401) + end + end + end +end |