From 08758a78e371181ebbebfceadafd9d2dd7f3a168 Mon Sep 17 00:00:00 2001 From: KMY Date: Tue, 12 Mar 2024 10:51:49 +0900 Subject: [PATCH] Fix test --- spec/lib/activitypub/activity/follow_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/lib/activitypub/activity/follow_spec.rb b/spec/lib/activitypub/activity/follow_spec.rb index c04945b76590a4..ef8ff2432158ab 100644 --- a/spec/lib/activitypub/activity/follow_spec.rb +++ b/spec/lib/activitypub/activity/follow_spec.rb @@ -381,7 +381,7 @@ subject { described_class.new(json, sender) } let(:sender) { Fabricate(:account, domain: 'abc.com', url: 'https://abc.com/#actor') } - let!(:friend) { Fabricate(:friend_domain, domain: 'abc.com', passive_state: :idle) } + let!(:friend) { Fabricate(:friend_domain, domain: 'abc.com', inbox_url: 'https://example.com/inbox', passive_state: :idle) } let!(:owner_user) { Fabricate(:user, role: UserRole.find_by(name: 'Owner')) } let!(:patch_user) { Fabricate(:user, role: Fabricate(:user_role, name: 'OhagiOps', permissions: UserRole::FLAGS[:manage_federation])) } let(:inbox_url) { nil } @@ -405,7 +405,7 @@ context 'when no record' do before do - friend.update(domain: 'def.com') + friend.destroy! end it 'marks the friend as pending' do @@ -423,7 +423,7 @@ let(:inbox_url) { 'https://ohagi.com/inbox' } before do - friend.update(domain: 'def.com') + friend.destroy! end it 'marks the friend as pending' do @@ -539,7 +539,7 @@ context 'when domain blocked' do before do - friend.update(domain: 'def.com') + friend.destroy! end it 'marks the friend rejected' do