spec/prawn/svg/elements/path_spec.rb in prawn-svg-0.25.2 vs spec/prawn/svg/elements/path_spec.rb in prawn-svg-0.26.0
- old
+ new
@@ -1,9 +1,10 @@
require 'spec_helper'
describe Prawn::SVG::Elements::Path do
let(:source) { double(name: "path", attributes: {}) }
- let(:path) { Prawn::SVG::Elements::Path.new(nil, source, [], {}) }
+ let(:state) { Prawn::SVG::State.new }
+ let(:path) { Prawn::SVG::Elements::Path.new(nil, source, [], state) }
before do
allow(path).to receive(:attributes).and_return("d" => d)
end