From 8557acf3bea018f961ccfe8c6d1c237b754ce265 Mon Sep 17 00:00:00 2001 From: Ain Tohvri Date: Sun, 18 Oct 2020 19:30:14 +0200 Subject: [PATCH 1/2] Update jekyll-seo-tag specs --- spec/github-pages/integration_spec.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/github-pages/integration_spec.rb b/spec/github-pages/integration_spec.rb index 339277bd..a297110f 100644 --- a/spec/github-pages/integration_spec.rb +++ b/spec/github-pages/integration_spec.rb @@ -187,8 +187,12 @@ def rm_destination end context "jekyll-seo-tag" do - it "outputs the tag" do - expect(contents).to match("Jekyll SEO Tag") + it "outputs title tag" do + expect(contents).to include("<title>Jekyll SEO Tag | pages-gem") + end + + it "outputs OpenGraph locale meta tag" do + expect(contents).to include("") end end From 1f022841e74bc8779b3fb007631df0f34116155f Mon Sep 17 00:00:00 2001 From: Ain Tohvri Date: Sun, 18 Oct 2020 19:35:24 +0200 Subject: [PATCH 2/2] Fix #722 locale not respected in og:locale Upgrade jekyll-seo-tag to 2.7.1 --- lib/github-pages/dependencies.rb | 2 +- spec/fixtures/jekyll-seo-tag.html | 1 + spec/github-pages/integration_spec.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/github-pages/dependencies.rb b/lib/github-pages/dependencies.rb index 63315d34..3ffdaffe 100644 --- a/lib/github-pages/dependencies.rb +++ b/lib/github-pages/dependencies.rb @@ -27,7 +27,7 @@ class Dependencies "jekyll-gist" => "1.5.0", "jekyll-paginate" => "1.1.0", "jekyll-coffeescript" => "1.1.1", - "jekyll-seo-tag" => "2.6.1", + "jekyll-seo-tag" => "2.7.1", "jekyll-github-metadata" => "2.13.0", "jekyll-avatar" => "0.7.0", "jekyll-remote-theme" => "0.4.2", diff --git a/spec/fixtures/jekyll-seo-tag.html b/spec/fixtures/jekyll-seo-tag.html index 1e026768..bc379bf7 100644 --- a/spec/fixtures/jekyll-seo-tag.html +++ b/spec/fixtures/jekyll-seo-tag.html @@ -1,5 +1,6 @@ --- title: Jekyll SEO Tag +locale: et_EE --- {% seo %} diff --git a/spec/github-pages/integration_spec.rb b/spec/github-pages/integration_spec.rb index a297110f..5bf8de31 100644 --- a/spec/github-pages/integration_spec.rb +++ b/spec/github-pages/integration_spec.rb @@ -192,7 +192,7 @@ def rm_destination end it "outputs OpenGraph locale meta tag" do - expect(contents).to include("") + expect(contents).to include("") end end