add explicit test for site.data.authors[author] as a string

This commit is contained in:
Ben Balter 2017-08-22 13:05:19 -04:00
parent a59b596a2b
commit 27392129c4
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 9 additions and 0 deletions

View File

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