spec/prawn/svg/elements/gradient_spec.rb in prawn-svg-0.22.1 vs spec/prawn/svg/elements/gradient_spec.rb in prawn-svg-0.23.0

- old
+ new

@@ -1,9 +1,9 @@ require 'spec_helper' describe Prawn::SVG::Elements::Gradient do let(:document) { Prawn::SVG::Document.new(svg, [800, 600], {width: 800, height: 600}) } - let(:element) { Prawn::SVG::Elements::Gradient.new(document, document.root, [], {}) } + let(:element) { Prawn::SVG::Elements::Gradient.new(document, document.root, [], Prawn::SVG::State.new) } before do allow(element).to receive(:assert_compatible_prawn_version) element.process end