mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-26 04:16:44 +00:00
First draft of API to add items to a collection (#37222)
This commit is contained in:
@@ -7,6 +7,7 @@ RSpec.describe REST::CollectionItemSerializer do
|
||||
|
||||
let(:collection_item) do
|
||||
Fabricate(:collection_item,
|
||||
id: 2342,
|
||||
state:,
|
||||
position: 4)
|
||||
end
|
||||
@@ -17,6 +18,7 @@ RSpec.describe REST::CollectionItemSerializer do
|
||||
it 'includes the relevant attributes including the account' do
|
||||
expect(subject)
|
||||
.to include(
|
||||
'id' => '2342',
|
||||
'account' => an_instance_of(Hash),
|
||||
'state' => 'accepted',
|
||||
'position' => 4
|
||||
|
||||
Reference in New Issue
Block a user