spec/prawn/svg/elements/style_spec.rb in prawn-svg-0.23.1 vs spec/prawn/svg/elements/style_spec.rb in prawn-svg-0.24.0

- old
+ new

@@ -12,10 +12,10 @@ z</style> SVG end let(:document) { Prawn::SVG::Document.new(svg, [800, 600], {}) } - let(:element) { Prawn::SVG::Elements::Style.new(document, document.root, [], {}) } + let(:element) { Prawn::SVG::Elements::Style.new(document, document.root, [], Prawn::SVG::State.new) } 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 <>&gt;\n k j\n after\nz") element.process end