failing test for site.social and page.seo being arrays

This commit is contained in:
Ben Balter 2017-04-26 10:45:23 -04:00
parent b13dda9a45
commit c2f6d1a795
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 16 additions and 0 deletions

View File

@ -122,6 +122,14 @@ RSpec.describe Jekyll::SeoTag::Drop do
end
end
context "with site.social as an array" do
let(:config) { { "social" => ["a", "b"] } }
it "uses site.social.name" do
expect(subject.name).to eql("social name")
end
end
it "uses the site title" do
expect(subject.name).to eql("site title")
end
@ -317,6 +325,14 @@ RSpec.describe Jekyll::SeoTag::Drop do
end
end
context "with seo as an array" do
let(:page_meta) { { "seo" => ["a", "b"] } }
it "uses seo.type" do
expect(subject.type).to eql("test")
end
end
context "the homepage" do
let(:page_meta) { { "permalink" => "/" } }