diff --git a/spec/jekyll_seo_tag/drop_spec.rb b/spec/jekyll_seo_tag/drop_spec.rb index 1b32709..0530c88 100644 --- a/spec/jekyll_seo_tag/drop_spec.rb +++ b/spec/jekyll_seo_tag/drop_spec.rb @@ -466,10 +466,18 @@ RSpec.describe Jekyll::SeoTag::Drop do end context "with some random hash" do - let(:image) { { "foo" => "bar"} } + let(:image) { { "foo" => "bar" } } - it "returns the image" do - expect(subject.image["path"]).to eql("/image.png") + it "returns nil" do + expect(subject.image).to be_nil + end + end + + context "with an invalid path" do + let(:image) { ":" } + + it "returns nil" do + expect(subject.image["path"]).to eql("/:") end end