add failing test for site.authors as an array

This commit is contained in:
Ben Balter 2017-08-22 11:31:54 -04:00
parent 351b04265a
commit 6ad02a583d
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 9 additions and 0 deletions

View File

@ -231,6 +231,15 @@ RSpec.describe Jekyll::SeoTag::Drop do
site
end
context "with site.authors as an array" do
let("data") { ["foo", "bar"] }
let(:page_meta) { {"author" => "foo"} }
it "doesn't error" do
expect(subject.author).to eql("")
end
end
%i[with without].each do |site_data_type|
context "#{site_data_type} site.author data" do
let(:data) do