diff options
| author | rinpatch <rinpatch@sdf.org> | 2019-06-22 02:00:18 +0300 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2019-06-22 02:00:18 +0300 |
| commit | 452d5d32317ef204c465ea56c341c86ab59bd171 (patch) | |
| tree | a9b612cf4ed8a422c421ef0c7613e9ef971b72ab /test/web/rich_media/parser_test.exs | |
| parent | 743bd648832eb1fd6033c3484059c08f88af40f3 (diff) | |
| parent | 55742d978d15bba75bcae9c6f2d91afbb77d0dc5 (diff) | |
| download | pleroma-452d5d32317ef204c465ea56c341c86ab59bd171.tar.gz pleroma-452d5d32317ef204c465ea56c341c86ab59bd171.zip | |
Merge branch 'develop' into release-docs
Diffstat (limited to 'test/web/rich_media/parser_test.exs')
| -rw-r--r-- | test/web/rich_media/parser_test.exs | 22 |
1 files changed, 0 insertions, 22 deletions
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, |
