diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-08-29 16:11:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 16:11:05 +0200 |
commit | 4c76402ba1d355061e7e208b7a2f8251388a38e1 (patch) | |
tree | f76f71be7326e16ccaeaf74402f36c79973b734b /spec/services | |
parent | 9958eba356210f1d0b89db368e17bbd72358e097 (diff) |
Serialize ActivityPub alternate link into OStatus deletes, handle it (#4730)
Requires moving Atom rendering from DistributionWorker (where `stream_entry.status` is already nil) to inline (where `stream_entry.status.destroyed?` is true) and distributing that. Unfortunately, such XML renderings can no longer be easily chained together into one payload of n items.
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/batched_remove_status_service_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/services/batched_remove_status_service_spec.rb b/spec/services/batched_remove_status_service_spec.rb index 2484d4b58..b1e9ac567 100644 --- a/spec/services/batched_remove_status_service_spec.rb +++ b/spec/services/batched_remove_status_service_spec.rb @@ -48,11 +48,10 @@ RSpec.describe BatchedRemoveStatusService do expect(Redis.current).to have_received(:publish).with('timeline:public', any_args).at_least(:once) end - it 'sends PuSH update to PuSH subscribers with two payloads united' do + it 'sends PuSH update to PuSH subscribers' do expect(a_request(:post, 'http://example.com/push').with { |req| - matches = req.body.scan(TagManager::VERBS[:delete]) - matches.size == 2 - }).to have_been_made + matches = req.body.match(TagManager::VERBS[:delete]) + }).to have_been_made.at_least_once end it 'sends Salmon slap to previously mentioned users' do |