oops
authorrinpatch <rinpatch@sdf.org>
Mon, 15 Apr 2019 08:59:01 +0000 (11:59 +0300)
committerrinpatch <rinpatch@sdf.org>
Mon, 15 Apr 2019 08:59:01 +0000 (11:59 +0300)
test/activity_test.exs

index d8063bf11652611d03b17af1deb8b44298f89b2d..dc9c56a21b1b25efe2145509eb8dee6d83817b16 100644 (file)
@@ -32,8 +32,8 @@ defmodule Pleroma.ActivityTest do
   test "reply count" do
     %{id: id, data: %{"object" => %{"id" => object_ap_id}}} = activity = insert(:note_activity)
 
-    repliesCount = activity.data["object"]["repliesCount"] || 0
-    expected_increase = repliesCount + 1
+    replies_count = activity.data["object"]["repliesCount"] || 0
+    expected_increase = replies_count + 1
     Activity.increase_replies_count(object_ap_id)
     %{data: %{"object" => %{"repliesCount" => actual_increase}}} = Activity.get_by_id(id)
     assert expected_increase == actual_increase