update failing tests for bad URLs

This commit is contained in:
Ben Balter 2017-04-26 12:48:00 -04:00
parent 593d09aacc
commit d00191c1e3
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 11 additions and 3 deletions

View File

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