mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Add quotes_count to serializer specs (#35901)
This commit is contained in:
parent
f3a932d8a1
commit
496370801a
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ RSpec.describe REST::StatusSerializer do
|
|||
status.status_stat.tap do |status_stat|
|
||||
status_stat.reblogs_count = 10
|
||||
status_stat.favourites_count = 20
|
||||
status_stat.quotes_count = 15
|
||||
status_stat.save
|
||||
end
|
||||
end
|
||||
|
|
@ -34,6 +35,7 @@ RSpec.describe REST::StatusSerializer do
|
|||
it 'shows the trusted counts' do
|
||||
expect(subject['reblogs_count']).to eq(10)
|
||||
expect(subject['favourites_count']).to eq(20)
|
||||
expect(subject['quotes_count']).to eq(15)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue