From 96b1fa22c5fc852a7f7116f0792edd5d1de255ef Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Wed, 3 May 2017 09:08:40 -0400 Subject: [PATCH] add explicit test for all descriptions being nil --- 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 c38b2a0..af35131 100644 --- a/spec/jekyll_seo_tag/drop_spec.rb +++ b/spec/jekyll_seo_tag/drop_spec.rb @@ -159,6 +159,15 @@ RSpec.describe Jekyll::SeoTag::Drop do expect(subject.description).to eql("site description") end end + + context "with no descriptions" do + let(:page_meta) { { "description"=> nil, "excerpt" => nil } } + let(:config) { { "description"=> nil } } + + it "uses returns nil" do + expect(subject.description).to be_nil + end + end end context "author" do