Fix small test case blunder.
This commit is contained in:
parent
ba16b955c8
commit
a847a69eea
|
@ -102,7 +102,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if page.image %}
|
||||
{% assign seo_page_image_default = page.image.default.path | default: page.image.default | default: page.image %}
|
||||
{% assign seo_page_image_default = page.image.default.path | default: page.image.default | default: page.image.path | default: page.image %}
|
||||
{% unless seo_page_image_default contains "://" %}
|
||||
{% assign seo_page_image_default = seo_page_image_default | absolute_url %}
|
||||
{% endunless %}
|
||||
|
|
|
@ -141,7 +141,7 @@ describe Jekyll::SeoTag do
|
|||
|
||||
context "with page.image as an object" do
|
||||
context "when given a path" do
|
||||
let(:page) { make_page("image" => { "default" => "/img/foo.png" }) }
|
||||
let(:page) { make_page("image" => { "path" => "/img/foo.png" }) }
|
||||
|
||||
it "outputs the image" do
|
||||
expected = %r!<meta property="og:image" content="http://example.invalid/img/foo.png" />!
|
||||
|
|
Loading…
Reference in New Issue