Fix some typos in the list test.
authoreal <eal@waifu.club>
Sat, 20 Oct 2018 10:03:45 +0000 (13:03 +0300)
committereal <eal@waifu.club>
Sat, 20 Oct 2018 10:03:45 +0000 (13:03 +0300)
test/list_test.exs

index 3c07e56b29ca82d7eeca41bc9bc56cbc56f17eee..19eef8f6b8d64f838ce203c7ce60aa0b6a87ee3c 100644 (file)
@@ -91,23 +91,23 @@ defmodule Pleroma.ListTest do
     refute list_three in lists
   end
 
-  test "getting onwered lists the user belongs" do
+  test "getting own lists a given user belongs to" do
     owner = insert(:user)
     not_owner = insert(:user)
     member_1 = insert(:user)
     member_2 = insert(:user)
-    {:ok, ownered_list} = Pleroma.List.create("ownered", owner)
-    {:ok, not_ownered_list} = Pleroma.List.create("not ownered", not_owner)
-    {:ok, ownered_list} = Pleroma.List.follow(ownered_list, member_1)
-    {:ok, ownered_list} = Pleroma.List.follow(ownered_list, member_2)
-    {:ok, not_ownered_list} = Pleroma.List.follow(not_ownered_list, member_1)
-    {:ok, not_ownered_list} = Pleroma.List.follow(not_ownered_list, member_2)
+    {:ok, owned_list} = Pleroma.List.create("owned", owner)
+    {:ok, not_owned_list} = Pleroma.List.create("not owned", not_owner)
+    {:ok, owned_list} = Pleroma.List.follow(owned_list, member_1)
+    {:ok, owned_list} = Pleroma.List.follow(owned_list, member_2)
+    {:ok, not_owned_list} = Pleroma.List.follow(not_owned_list, member_1)
+    {:ok, not_owned_list} = Pleroma.List.follow(not_owned_list, member_2)
 
     lists_1 = Pleroma.List.get_lists_account_belongs(owner, member_1.id)
-    assert ownered_list in lists_1
-    refute not_ownered_list in lists_1
+    assert owned_list in lists_1
+    refute not_owned_list in lists_1
     lists_2 = Pleroma.List.get_lists_account_belongs(owner, member_2.id)
-    assert ownered_list in lists_2
-    refute not_ownered_list in lists_2
+    assert owned_list in lists_2
+    refute not_owned_list in lists_2
   end
 end