claims_controller_spec.rb 430 B

12345678910111213141516171819
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe ActivityPub::ClaimsController do
  4. let(:account) { Fabricate(:account) }
  5. describe 'POST #create' do
  6. context 'without signature' do
  7. before do
  8. post :create, params: { account_username: account.username }, body: '{}'
  9. end
  10. it 'returns http not authorized' do
  11. expect(response).to have_http_status(401)
  12. end
  13. end
  14. end
  15. end