spec/lib/parser_spec.rb in prawn-svg-0.12.0.12 vs spec/lib/parser_spec.rb in prawn-svg-0.15.0.0
- old
+ new
@@ -30,13 +30,10 @@
@document = Prawn::Svg::Document.new("<svg></svg>", [100, 100], {})
@parser = Prawn::Svg::Parser.new(@document)
end
def mock_element(name, attributes = {})
- e = mock
- e.stub!(:name).and_return(name)
- e.stub!(:attributes).and_return(attributes)
-
+ e = double(:name => name, :attributes => attributes)
Prawn::Svg::Element.new(@document, e, [], {})
end
it "ignores tags it doesn't know about" do
calls = []