From 45950e9ec253953edcbcab1162c2dba72361f7f5 Mon Sep 17 00:00:00 2001 From: Ilgiz Mustafin Date: Thu, 7 Oct 2021 22:09:19 +0300 Subject: [PATCH] Test that url is nil when not provided for author --- spec/jekyll_seo_tag/json_ld_drop_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/jekyll_seo_tag/json_ld_drop_spec.rb b/spec/jekyll_seo_tag/json_ld_drop_spec.rb index b9bc627..3f1b5ff 100644 --- a/spec/jekyll_seo_tag/json_ld_drop_spec.rb +++ b/spec/jekyll_seo_tag/json_ld_drop_spec.rb @@ -69,6 +69,7 @@ RSpec.describe Jekyll::SeoTag::JSONLDDrop do expect(subject["author"]).to have_key("name") expect(subject["author"]["name"]).to be_a(String) expect(subject["author"]["name"]).to eql("author") + expect(subject["author"]["url"]).to be nil end end end