mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Fix serialization of context pages (#37376)
This commit is contained in:
parent
ad4ba5aa00
commit
3013039720
3 changed files with 10 additions and 4 deletions
|
|
@ -24,6 +24,11 @@ RSpec.describe 'ActivityPub Contexts' do
|
|||
expect(response.parsed_body[:type])
|
||||
.to eq 'Collection'
|
||||
|
||||
expect(response.parsed_body[:first])
|
||||
.to include(
|
||||
type: 'CollectionPage',
|
||||
partOf: context_url(conversation)
|
||||
)
|
||||
expect(response.parsed_body[:first][:items])
|
||||
.to be_an(Array)
|
||||
.and have_attributes(size: 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue