From 0f8edbce4a72d509365ee707d7fdc64a06f2bd78 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Tue, 11 Apr 2017 15:29:43 -0500 Subject: [PATCH] add test for specifying image height and width --- spec/jekyll_seo_tag/drop_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/jekyll_seo_tag/drop_spec.rb b/spec/jekyll_seo_tag/drop_spec.rb index ab0b852..d61e7b2 100644 --- a/spec/jekyll_seo_tag/drop_spec.rb +++ b/spec/jekyll_seo_tag/drop_spec.rb @@ -439,6 +439,15 @@ RSpec.describe Jekyll::SeoTag::Drop 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 } } + + it "returns the height and width" do + expect(subject.image["height"]).to eql(5) + expect(subject.image["width"]).to eql(10) + end + end end end