From 593d09aacc6f5c6beccdb16877bfa85d08e6f8f5 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Wed, 26 Apr 2017 12:43:10 -0400 Subject: [PATCH] failing test for nil image paths --- spec/jekyll_seo_tag/drop_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/jekyll_seo_tag/drop_spec.rb b/spec/jekyll_seo_tag/drop_spec.rb index f73fdc6..1b32709 100644 --- a/spec/jekyll_seo_tag/drop_spec.rb +++ b/spec/jekyll_seo_tag/drop_spec.rb @@ -465,6 +465,14 @@ RSpec.describe Jekyll::SeoTag::Drop do end end + context "with some random hash" do + let(:image) { { "foo" => "bar"} } + + it "returns the image" do + expect(subject.image["path"]).to eql("/image.png") + end + end + context "with height and width" do let(:image) { { "path" => "image.png", "height" => 5, "width" => 10 } }