This commit is contained in:
Ben Balter 2017-05-02 09:41:18 -04:00
parent 908237c7ad
commit 65820ada36
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 9 additions and 0 deletions

View File

@ -261,6 +261,15 @@ RSpec.describe Jekyll::SeoTag::Drop do
end
end
# See https://github.com/jekyll/jekyll-seo-tag/issues/202
context "without an author name or handle" do
let(:page_meta) { { "author" => { "foo" => "bar" } } }
it "dosen't blow up" do
expect(subject.author["twitter"]).to be_nil
end
end
context "with an explicit handle" do
let(:page_meta) do
{