Remove OpenGraph test from Ostatus tests
authorrinpatch <rinpatch@sdf.org>
Wed, 16 Jan 2019 07:53:57 +0000 (10:53 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 16 Jan 2019 07:53:57 +0000 (10:53 +0300)
test/web/ostatus/ostatus_controller_test.exs

index 8e9d2b69ae7055f6a650efdd6d4a8d51f64b21f3..5a94cb3b3b8180540ab4342d44025da19c9a2c8e 100644 (file)
@@ -156,19 +156,6 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest do
     |> response(404)
   end
 
-  test "renders notice metatags in html format", %{conn: conn} do
-    note_activity = insert(:note_activity)
-    conn = get(conn, "/notice/#{note_activity.id}")
-    body = html_response(conn, 200)
-    twitter_card_summary = "<meta content=\"summary\" property=\"twitter:card\">"
-
-    description_content =
-      "<meta content=\"#{note_activity.data["object"]["content"]}\" property=\"og:description\">"
-
-    assert body =~ twitter_card_summary
-    assert body =~ description_content
-  end
-
   test "gets a notice in xml format", %{conn: conn} do
     note_activity = insert(:note_activity)