Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Jul 31, 2024
1 parent a99f174 commit e92a9a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/lib/activitypub/activity/create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ def activity_for_object(json)
inbox: 'https://foo.test/inbox',
}.with_indifferent_access
end
let!(:webfinger) { { subject: 'acct:[email protected]', links: [{ rel: 'self', href: 'https://foo.test' }] } }
let!(:webfinger) { { subject: 'acct:[email protected]', links: [{ rel: 'self', href: 'https://foo.test', type: 'application/activity+json' }] } }

let(:object_json) do
{
Expand All @@ -1129,13 +1129,13 @@ def activity_for_object(json)

before do
stub_request(:get, 'https://foo.test').to_return(status: 200, body: Oj.dump(actor_json), headers: { 'Content-Type': 'application/activity+json' })
stub_request(:get, 'https://foo.test/.well-known/webfinger?resource=acct:[email protected]').to_return(status: 200, body: Oj.dump(webfinger), headers: { 'Content-Type': 'application/activity+json' })
stub_request(:get, 'https://foo.test/.well-known/webfinger?resource=acct:[email protected]').to_return(status: 200, body: Oj.dump(webfinger), headers: { 'Content-Type': 'application/jrd+json' })
stub_request(:post, 'https://foo.test/inbox').to_return(status: 200)
stub_request(:get, 'https://foo.test/.well-known/nodeinfo').to_return(status: 200, headers: { 'Content-Type': 'application/activity+json' })
subject.perform
end

it 'creates status' do
it 'creates status', :inline_jobs do
status = sender.statuses.first

expect(status).to_not be_nil
Expand Down

0 comments on commit e92a9a3

Please sign in to comment.