Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Mar 12, 2024
1 parent 7e3af19 commit 08758a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/lib/activitypub/activity/follow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 08758a7

Please sign in to comment.