Sha256: a880b417c6ee42d03ce3e92f408a2eba1f1d6b9e1da5ebdaefd5b3464cdab6ed
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
require 'spec_helper' describe Prawn::SVG::Elements::Style do let(:svg) do <<-SVG <style>a before> x <![CDATA[ y inside <>> k ]]> j after z</style> SVG end let(:document) { Prawn::SVG::Document.new(svg, [800, 600], {}) } let(:element) { Prawn::SVG::Elements::Style.new(document, document.root, [], {}) } it "correctly collects the style information in a <style> tag" do expect(document.css_parser).to receive(:add_block!).with("a\n before>\n x y\n inside <>>\n k j\n after\nz") element.process end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
prawn-svg-0.23.1 | spec/prawn/svg/elements/style_spec.rb |
prawn-svg-0.23.0 | spec/prawn/svg/elements/style_spec.rb |
prawn-svg-0.22.1 | spec/prawn/svg/elements/style_spec.rb |