dev-ruby/prawn-svg: add 0.35.1

Closes: https://bugs.gentoo.org/937362
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2024-08-07 22:07:56 +09:00
parent 2a420e767c
commit 35ca9ff0e2
3 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
Raised error have changed since rexml 3.3.3. Expect any errors to make the test work.
https://github.com/mogest/prawn-svg/pull/169
--- a/spec/prawn/svg/document_spec.rb
+++ b/spec/prawn/svg/document_spec.rb
@@ -28,7 +28,7 @@ describe Prawn::SVG::Document do
it 'raises an exception' do
expect do
Prawn::SVG::Document.new(svg, bounds, options)
- end.to raise_error Prawn::SVG::Document::InvalidSVGData, 'The data supplied is not a valid SVG document.'
+ end.to raise_error
end
end
@@ -38,8 +38,7 @@ describe Prawn::SVG::Document do
it "raises an exception letting them know what they've done" do
expect do
Prawn::SVG::Document.new(svg, bounds, options)
- end.to raise_error Prawn::SVG::Document::InvalidSVGData,
- "The data supplied is not a valid SVG document. It looks like you've supplied a filename instead; use IO.read(filename) to get the data before you pass it to prawn-svg."
+ end.to raise_error
end
end
end