LinkDetailsExtractor adjustments (#31357)
This commit is contained in:
parent
68c7782940
commit
0518613dd7
3 changed files with 21 additions and 9 deletions
|
@ -49,7 +49,8 @@ RSpec.describe LinkDetailsExtractor do
|
|||
<html lang="en">
|
||||
<head>
|
||||
<title>Man bites dog</title>
|
||||
<meta name="description" content="A dog's tale">
|
||||
<meta name="descripTION" content="A dog's tale">
|
||||
<link rel="pretty IcoN" href="/favicon.ico">
|
||||
</head>
|
||||
</html>
|
||||
HTML
|
||||
|
@ -59,7 +60,8 @@ RSpec.describe LinkDetailsExtractor do
|
|||
.to have_attributes(
|
||||
title: eq('Man bites dog'),
|
||||
description: eq("A dog's tale"),
|
||||
language: eq('en')
|
||||
language: eq('en'),
|
||||
icon: eq('https://example.com/favicon.ico')
|
||||
)
|
||||
end
|
||||
end
|
||||
|
@ -256,7 +258,7 @@ RSpec.describe LinkDetailsExtractor do
|
|||
<head>
|
||||
<meta property="og:url" content="https://example.com/dog.html">
|
||||
<meta property="og:title" content="Man bites dog">
|
||||
<meta property="og:description" content="A dog's tale">
|
||||
<meta property="OG:description" content="A dog's tale">
|
||||
<meta property="article:published_time" content="2022-01-31T19:53:00+00:00">
|
||||
<meta property="og:author" content="Charlie Brown">
|
||||
<meta property="og:locale" content="en">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue