1 defmodule Pleroma.Web.RichMedia.ParserTest do
2 use ExUnit.Case, async: true
8 url: "http://example.com/ogp"
10 %Tesla.Env{status: 200, body: File.read!("test/fixtures/rich_media/ogp.html")}
17 assert Pleroma.Web.RichMedia.Parser.parse("http://example.com/ogp") ==
18 %Pleroma.Web.RichMedia.Data{
20 image: "http://ia.media-imdb.com/images/rock.jpg",
23 url: "http://www.imdb.com/title/tt0117500/"