diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-08 12:00:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-08 12:00:17 +0200 |
commit | a4caa7eb6258ff7f8eea8e6791b86b1c7f4d172e (patch) | |
tree | 73618aed49160ece71b17df7fef4efa7a0dd261a /spec/lib/activitypub/activity | |
parent | 7c2d84910cf427787b9fea2bdba67ec426c0b97d (diff) |
Fetch statuses/following/followers numbers from ActivityPub collections (#4840)
Diffstat (limited to 'spec/lib/activitypub/activity')
-rw-r--r-- | spec/lib/activitypub/activity/update_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/lib/activitypub/activity/update_spec.rb b/spec/lib/activitypub/activity/update_spec.rb index 0bd6d00d9..ea308e35c 100644 --- a/spec/lib/activitypub/activity/update_spec.rb +++ b/spec/lib/activitypub/activity/update_spec.rb @@ -2,12 +2,16 @@ require 'rails_helper' RSpec.describe ActivityPub::Activity::Update do let!(:sender) { Fabricate(:account) } - + before do + stub_request(:get, actor_json[:outbox]).to_return(status: 404) + stub_request(:get, actor_json[:followers]).to_return(status: 404) + stub_request(:get, actor_json[:following]).to_return(status: 404) + sender.update!(uri: ActivityPub::TagManager.instance.uri_for(sender)) end - let(:modified_sender) do + let(:modified_sender) do sender.dup.tap do |modified_sender| modified_sender.display_name = 'Totally modified now' end |