DEV: Fix typo in specs

DEV: Fix typo in specs.

From cf21c7f5aa6016b495772103e9a5033775f48afa Mon Sep 17 00:00:00 2001
From: Guo Xiang Tan <tgx_world@hotmail.com>
Date: Mon, 19 Nov 2018 15:13:54 +0800
Subject: [PATCH] DEV: Fix typo in specs.


diff --git a/spec/serializers/topic_list_serializer_spec.rb b/spec/serializers/topic_list_serializer_spec.rb
index e92609a..552c5eb 100644
--- a/spec/serializers/topic_list_serializer_spec.rb
+++ b/spec/serializers/topic_list_serializer_spec.rb
@@ -17,7 +17,7 @@ RSpec.describe TopicListSerializer do
     ).as_json
 
     expect(serialized[:users].first[:id]).to eq(topic.user_id)
-    expect(serialized[:primar_groups]).to eq([])
+    expect(serialized[:primary_groups]).to eq([])
     expect(serialized[:topic_list][:topics].first[:id]).to eq(topic.id)
   end
 end

GitHub

1 Like