From 83af32c472d8b6662d6450b97bd65ddc3a981893 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 14 Jan 2019 07:26:10 +0530 Subject: [PATCH] DEV: more accurate spec for UserSummarySerializer --- spec/serializers/user_summary_serializer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/serializers/user_summary_serializer_spec.rb b/spec/serializers/user_summary_serializer_spec.rb index cd7387c8b9f..55a53f54cef 100644 --- a/spec/serializers/user_summary_serializer_spec.rb +++ b/spec/serializers/user_summary_serializer_spec.rb @@ -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