mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 16:52:45 +08:00
DEV: more accurate spec for UserSummarySerializer
This commit is contained in:
parent
5e9a7e41e9
commit
83af32c472
|
@ -13,7 +13,7 @@ describe UserSummarySerializer do
|
|||
serializer = UserSummarySerializer.new(summary, scope: guardian, root: false)
|
||||
json = serializer.as_json
|
||||
|
||||
expect(json[:likes_given]).to be_present
|
||||
expect(json[:likes_given]).to eq(1)
|
||||
expect(json[:likes_received]).to be_present
|
||||
expect(json[:posts_read_count]).to be_present
|
||||
expect(json[:topic_count]).to be_present
|
||||
|
|
Loading…
Reference in New Issue
Block a user