failing test for nil image paths

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

View File

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