fix tests
authorMaksim Pechnikov <parallel588@gmail.com>
Wed, 18 Nov 2020 06:58:51 +0000 (09:58 +0300)
committerMaksim Pechnikov <parallel588@gmail.com>
Wed, 18 Nov 2020 06:58:51 +0000 (09:58 +0300)
lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex
test/pleroma/web/pleroma_api/controllers/emoji_pack_controller_test.exs

index d2e869e6e922114bb432b305e944561d985c060e..bc4c8d84061afff263e8f91ef1e98a1e7dd315e4 100644 (file)
@@ -180,7 +180,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiPackController do
         |> json(%{error: "pack name cannot be empty"})
 
       {:error, error, _} ->
-        error_message = add_posix_error("Couldn't delete the #{name} pack", error)
+        error_message = add_posix_error("Couldn't delete the `#{name}` pack", error)
 
         conn
         |> put_status(:internal_server_error)
index aa5348c6c5a9a69373c2cea8cd2465c95421d0d3..d9385389b2538cc087a2677e93f3b1085a34d18a 100644 (file)
@@ -471,7 +471,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiPackControllerTest do
                  |> delete("/api/pleroma/emoji/pack?name=test_emoji_pack")
                  |> json_response_and_validate_schema(500) == %{
                    "error" =>
-                     "Couldn't delete the pack test_emoji_pack (POSIX error: Permission denied)"
+                     "Couldn't delete the `test_emoji_pack` pack (POSIX error: Permission denied)"
                  }
         end
       after