From d00191c1e3e7828a95b7599521cf0ad0073406fe Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Wed, 26 Apr 2017 12:48:00 -0400 Subject: [PATCH] update failing tests for bad URLs --- spec/jekyll_seo_tag/drop_spec.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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