diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-17 00:49:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 00:49:55 +0100 |
commit | d5c9feb7b7fc489afbd0a287431fe07b42451ef0 (patch) | |
tree | 8482c1ac948d10fd0c0a2a17c34c44f2b9b09ad0 /spec/lib/activitypub/activity/accept_spec.rb | |
parent | 081e4426f8b4f5377afdd6e68e135a3aded93df1 (diff) |
Add support for private pinned posts (#16954)
* Add support for private pinned toots * Allow local user to pin private toots * Change wording to avoid "direct message"
Diffstat (limited to 'spec/lib/activitypub/activity/accept_spec.rb')
-rw-r--r-- | spec/lib/activitypub/activity/accept_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/lib/activitypub/activity/accept_spec.rb b/spec/lib/activitypub/activity/accept_spec.rb index 883bab6ac..304cf2208 100644 --- a/spec/lib/activitypub/activity/accept_spec.rb +++ b/spec/lib/activitypub/activity/accept_spec.rb @@ -23,6 +23,7 @@ RSpec.describe ActivityPub::Activity::Accept do subject { described_class.new(json, sender) } before do + allow(RemoteAccountRefreshWorker).to receive(:perform_async) Fabricate(:follow_request, account: recipient, target_account: sender) subject.perform end @@ -34,6 +35,10 @@ RSpec.describe ActivityPub::Activity::Accept do it 'removes the follow request' do expect(recipient.requested?(sender)).to be false end + + it 'queues a refresh' do + expect(RemoteAccountRefreshWorker).to have_received(:perform_async).with(sender.id) + end end context 'given a relay' do |