fix tests

This commit is contained in:
Maksim Pechnikov 2020-11-18 09:58:51 +03:00
parent 3c00af82dc
commit 9c5d1cb9ed
2 changed files with 2 additions and 2 deletions

View file

@ -180,7 +180,7 @@ def delete(conn, %{name: name}) 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)

View file

@ -471,7 +471,7 @@ test "returns an error on deletes pack when the file system is not writable", %{
|> 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