Sha256: c01122a26ccd7129b2e77a8dcba34c9abf39411e01f778577ac0f454a380c957
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
require 'inline_svg/transform_pipeline' describe InlineSvg::TransformPipeline::Transformations::ViewBox do it "adds viewBox attribute to a SVG document" do document = Nokogiri::XML::Document.parse('<svg>Some document</svg>') transformation = InlineSvg::TransformPipeline::Transformations::ViewBox .create_with_value("0 0 100 100") expect(transformation.transform(document).to_html).to eq( "<svg viewBox=\"0 0 100 100\">Some document</svg>\n" ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inline_svg-1.10.0 | spec/transformation_pipeline/transformations/view_box_spec.rb |
inline_svg-1.9.0 | spec/transformation_pipeline/transformations/view_box_spec.rb |