Fix test
This commit is contained in:
parent
a99f174d98
commit
e92a9a3557
1 changed files with 3 additions and 3 deletions
|
@ -1109,7 +1109,7 @@ RSpec.describe ActivityPub::Activity::Create do
|
|||
inbox: 'https://foo.test/inbox',
|
||||
}.with_indifferent_access
|
||||
end
|
||||
let!(:webfinger) { { subject: 'acct:actor@foo.test', links: [{ rel: 'self', href: 'https://foo.test' }] } }
|
||||
let!(:webfinger) { { subject: 'acct:actor@foo.test', links: [{ rel: 'self', href: 'https://foo.test', type: 'application/activity+json' }] } }
|
||||
|
||||
let(:object_json) do
|
||||
{
|
||||
|
@ -1129,13 +1129,13 @@ RSpec.describe ActivityPub::Activity::Create do
|
|||
|
||||
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:actor@foo.test').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:actor@foo.test').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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue