8000 Fix locale specs that use the fallback locale by ljcooke · Pull Request #360 · jekyll/jekyll-seo-tag · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions spec/jekyll_seo_tag_integration_spec.rb
875E
Original file line number Diff line number Diff line change
Expand Up @@ -660,10 +660,10 @@
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!<meta property="og:locale" content="en_US" />!
expected = %r!<meta property="og:locale" content="de_DE" />!
expect(output).to match(expected)
end

Expand All @@ -678,10 +678,10 @@
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!<meta property="og:locale" content="en_US" />!
expected = %r!<meta property="og:locale" content="en_AU" />!
expect(output).to match(expected)
end
end
Expand Down
0