Skip to content

Commit

Permalink
replace JSON.load with JSON.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Jan 8, 2025
1 parent 10e815c commit 180534d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/diagram_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
(expect Pathname.new output_file 'images/pdfwidth-test.png').to exist
images = pdf.images
(expect images).to have_size 1
image_data = JSON.load (Pathname.new output_file '.asciidoctor/diagram/pdfwidth-test.png.cache').read
image_data = JSON.parse (Pathname.new output_file '.asciidoctor/diagram/pdfwidth-test.png.cache').read
(expect images[0][:intrinsic_width].to_f).to eql image_data['width'].to_f
(expect images[0][:width].to_f).to eql 72.0
end
Expand Down

0 comments on commit 180534d

Please sign in to comment.