Sha256: 92550f30d8fd6c36715ee9a888201725af6d050c71b27d5fd84b2cdfa71def80
Contents?: true
Size: 472 Bytes
Versions: 39
Compression:
Stored size: 472 Bytes
Contents
require 'inline_svg/transform_pipeline' describe InlineSvg::TransformPipeline::Transformations::IdAttribute do it "adds an id attribute to a SVG document" do document = Nokogiri::XML::Document.parse('<svg>Some document</svg>') transformation = InlineSvg::TransformPipeline::Transformations::IdAttribute.create_with_value("some-id") expect(transformation.transform(document).to_html).to eq( "<svg id=\"some-id\">Some document</svg>\n" ) end end
Version data entries
39 entries across 39 versions & 2 rubygems