Add extended domain block tests

This commit is contained in:
KMY 2023-09-04 12:07:29 +09:00
parent 43144661ea
commit 7a0bf2e948
6 changed files with 231 additions and 15 deletions

View file

@ -97,6 +97,22 @@ RSpec.describe ActivityPub::Activity::Announce do
end
end
context 'with domain block' do
before do
Fabricate(:account)
Fabricate(:domain_block, domain: 'example.com', severity: :suspend)
subject.perform
end
let(:object_json) do
ActivityPub::TagManager.instance.uri_for(status)
end
it 'does not creates a reblog by sender of status', pending: 'considering spec' do
expect(sender.reblogged?(status)).to be false
end
end
context 'when the status belongs to a local user' do
before do
subject.perform