failing test for site.social and page.seo being arrays
This commit is contained in:
parent
b13dda9a45
commit
c2f6d1a795
|
@ -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" => "/" } }
|
||||
|
||||
|
|
Loading…
Reference in New Issue