summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2019-06-21 11:36:32 +0000
committerfeld <feld@feld.me>2019-06-21 11:36:32 +0000
commitb6af80f769195b5047ee8da07166f022c2e29b0a (patch)
tree15a5c55c3ebe313095c5f322f5629176f3281d92 /test
parent2437f5128407bbcdfc152ea3f008d7eecc1728f2 (diff)
downloadpleroma-b6af80f769195b5047ee8da07166f022c2e29b0a.tar.gz
pleroma-b6af80f769195b5047ee8da07166f022c2e29b0a.zip
Revert "Merge branch 'fix/ogp-title' into 'develop'"
This reverts merge request !1277
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/rich_media/ogp-missing-title.html12
-rw-r--r--test/web/rich_media/parser_test.exs22
2 files changed, 0 insertions, 34 deletions
diff --git a/test/fixtures/rich_media/ogp-missing-title.html b/test/fixtures/rich_media/ogp-missing-title.html
deleted file mode 100644
index fcdbedfc6..000000000
--- a/test/fixtures/rich_media/ogp-missing-title.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<html prefix="og: http://ogp.me/ns#">
-
-<head>
- <title>The Rock (1996)</title>
- <meta property="og:type" content="video.movie" />
- <meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
- <meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
- <meta property="og:description"
- content="Directed by Michael Bay. With Sean Connery, Nicolas Cage, Ed Harris, John Spencer.">
-</head>
-
-</html>
diff --git a/test/web/rich_media/parser_test.exs b/test/web/rich_media/parser_test.exs
index a49ba9549..3a9cc1854 100644
--- a/test/web/rich_media/parser_test.exs
+++ b/test/web/rich_media/parser_test.exs
@@ -11,15 +11,6 @@ defmodule Pleroma.Web.RichMedia.ParserTest do
%{
method: :get,
- url: "http://example.com/ogp-missing-title"
- } ->
- %Tesla.Env{
- status: 200,
- body: File.read!("test/fixtures/rich_media/ogp-missing-title.html")
- }
-
- %{
- method: :get,
url: "http://example.com/twitter-card"
} ->
%Tesla.Env{status: 200, body: File.read!("test/fixtures/rich_media/twitter_card.html")}
@@ -60,19 +51,6 @@ defmodule Pleroma.Web.RichMedia.ParserTest do
}}
end
- test "falls back to <title> when ogp:title is missing" do
- assert Pleroma.Web.RichMedia.Parser.parse("http://example.com/ogp-missing-title") ==
- {:ok,
- %{
- image: "http://ia.media-imdb.com/images/rock.jpg",
- title: "The Rock (1996)",
- description:
- "Directed by Michael Bay. With Sean Connery, Nicolas Cage, Ed Harris, John Spencer.",
- type: "video.movie",
- url: "http://www.imdb.com/title/tt0117500/"
- }}
- end
-
test "parses twitter card" do
assert Pleroma.Web.RichMedia.Parser.parse("http://example.com/twitter-card") ==
{:ok,