From 6ad02a583d82a6365393a70a10eb86bf03602edd Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Tue, 22 Aug 2017 11:31:54 -0400 Subject: [PATCH] add failing test for site.authors as an array --- spec/jekyll_seo_tag/drop_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/jekyll_seo_tag/drop_spec.rb b/spec/jekyll_seo_tag/drop_spec.rb index 0fab884..49e683f 100644 --- a/spec/jekyll_seo_tag/drop_spec.rb +++ b/spec/jekyll_seo_tag/drop_spec.rb @@ -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