add test for specifying image height and width

This commit is contained in:
Ben Balter 2017-04-11 15:29:43 -05:00
parent 650fe5c1fd
commit 0f8edbce4a
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 9 additions and 0 deletions

View File

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