add explicit test for all descriptions being nil

This commit is contained in:
Ben Balter 2017-05-03 09:08:40 -04:00
parent 4c3f8048dd
commit 96b1fa22c5
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 9 additions and 0 deletions

View File

@ -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