From 6f35c9c05b3ca527f60989d4e6d1425e76e40c44 Mon Sep 17 00:00:00 2001 From: Liam Cooke <14365947+ljcooke@users.noreply.github.com> Date: Fri, 31 Jan 2020 20:39:38 +1100 Subject: [PATCH] Fix locale specs that use the fallback locale (#360) Merge pull request 360 --- spec/jekyll_seo_tag_integration_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/jekyll_seo_tag_integration_spec.rb b/spec/jekyll_seo_tag_integration_spec.rb index 276c665..22646db 100755 --- a/spec/jekyll_seo_tag_integration_spec.rb +++ b/spec/jekyll_seo_tag_integration_spec.rb @@ -660,10 +660,10 @@ RSpec.describe Jekyll::SeoTag do end context "with site.lang" do - let(:site) { make_site("lang" => "en_US") } + let(:site) { make_site("lang" => "de_DE") } it "uses site.lang if page.lang is not present" do - expected = %r!! + expected = %r!! expect(output).to match(expected) end @@ -678,10 +678,10 @@ RSpec.describe Jekyll::SeoTag do end context "with site.lang hyphenated" do - let(:site) { make_site("lang" => "en-US") } + let(:site) { make_site("lang" => "en-AU") } it "coerces hyphen to underscore" do - expected = %r!! + expected = %r!! expect(output).to match(expected) end end