require 'minitest_helper'
module SlideHero
describe Image do
it "takes an image path and renders appropriate markup" do
image = Image.new("cornify.gif", "Unicorn", width: 280, height: 326)
image.compile.must_equal %{
}
end
it "doesn't require all fields" do
image = Image.new("cornify.gif")
image.compile.must_equal %{
}
end
end
end